Karem
Karem

Reputation: 18113

Sending html mails with PHP

So i am using xmail php class to send my mails.

Now that i have quite some users on my site, some user's mail does not have html enabled for their emails. Is there any way I can write a message at the top of the email, or even show another email content, if they view it as text/plain?

If not, what are my options, what can I do? I know one option and that is sending text/plain mails, but these wont even allow html anchor links, which I need for e.g activation mails..

Upvotes: 4

Views: 270

Answers (1)

John Conde
John Conde

Reputation: 219904

You can send multi-part emails. One part is HTML and then there is a fallback of plain text for non HTML email clients. PHPMailer makes this easy to do.

Upvotes: 3

Related Questions