Posted by Zoe Brown on 10/13/96 11:29
"Nicholas" <nospam_nick@yahoo.com_nospam> wrote in message
news:4353dffe$0$3760$39cecf19@news.twtelecom.net...
>
>>>>How do i send a HTML email using PHP.
>>>
>>> Don't. All html email is spam.
>>
>> so what do you suggest instead, I need to be able to format the document
>> on the server and then send.
>
> Don't listen to the trolls.
>
> http://us3.php.net/manual/en/function.mail.php
>
> Look at #4. You need to create a body with HTML tags, of course (please be
> WC3 compliant) and then don't forget to send a header when you specify
> that your content-type is indeed html:
>
> // To send HTML mail, the Content-type header must be set
> $headers = 'MIME-Version: 1.0' . "\r\n";
> $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
Thanks for the reply, I have done this and several variations and although
the email looks fine for my account on Outlook it just doesn;t work at all
for outlook express. Any ideas?
[Back to original message]
|