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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] PHP HTML Mails? In reply to
It makes no difference Wink