Thursday, June 05, 2008

How to send HTML mail with php?

You would need to add a HTML content type to your mail header, as shown below:

mail($recipient, $subject, $message, From: $sender\nContent-Type: text/html;);

No comments: