Re: HTML email with Outlook
| From: | Baroiller Pierre-Emmanuel | Date: | Tue, 15 Jul 2003 22:56:00 +0000 |
| Subject: | Re: HTML email with Outlook | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155332@lists.php.net to get a copy of this message | ||
Hi,
try with adding this :
$header = "Content-Type: text/html;
charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 8bit\n\n";
If it don't work, try to build multipart email ...
Regards,
P.E. Baroiller
"Tim Thorburn" <immortal@nwconx.net> a écrit dans le message de
news:5.2.1.1.0.20030715174426.00bcf1c8@mail.nwconx.net...
> Hi,
>
> I've made a PHP script that sends out an automatic email through my
servers
> cron system, it works well, but I thought I'd try to do some HTML email to
> get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
>
> When I check the messages sent out with Eudora, the HTML email comes in
> perfectly. However, when I check with Outlook Express 6 - I get the
actual
> HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command? I've recieved HTML
> email before with Outlook Express on my machine without changing any
> settings at all. Also, I had sent an email from my script to hotmail and
> the HTML email worked fine there too.
>
> Any thoughts?
>
> Thanks
> -Tim
>
>