PDA

View Full Version : sendmail from php with html headers


j_bravo
10-14-2002, 11:29 PM
i'd like to know how i can send mail (using the "mail" command or the linux command "sendmail") from php, including the html headers...so when i read the message, it gets parsed and it is displayed properly (not with tags like <br> and stuff)
10x

Astro-Boy
10-15-2002, 08:23 AM
You can specify the content-type in the third mail() paramater:

mail('to@address.com','email body','Content-type: text/html')

more info at php.net (http://www.php.net/manual/en/function.mail.php)

- Mark