Gossamer Forum
Home : General : Internet Technologies :

PHP HTML Mails?

Quote Reply
PHP HTML Mails?
I'm having a little problem with Email sending in PHP. For some reason, with Outlook 2001, it won't accpt the HTML email as HTML. I've got this;

Code:
mail("$toemail", $subject, $saved,
"From: $email_to\r\n"
."Reply-To: $email\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=iso-8859-1\r\n");

I've also tried;

Code:
mail("$toemail", $subject, $saved,
"From: $email_to\r\n"
."Reply-To: $email\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html r\n");

Has anyone had any experiences with this kind of thing? Its really weird how it works on my computer, as well as hotmail account. He has also said that he receives other HTML emails fine from other companies...its just with this code that it won't work Frown

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] PHP HTML Mails? In reply to
Here's what I use - works with Outlook 2000...

Code:
print MAIL "MIME-Version: 1.0\n";
print MAIL "Content-Type: text/html; charset=us-ascii\n";
print MAIL "Content-Transfer-Encoding: 7bit\n";

See if it works.

<edit> it's for perl, but concept is the same</edit>

Last edited by:

Watts: May 29, 2002, 11:30 AM
Quote Reply
Re: [Watts] PHP HTML Mails? In reply to
Slight problem, this is PHP, and not Perl Wink Thanks for the reply though.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] PHP HTML Mails? In reply to
It makes no difference Wink