Re: problem with mail()/html/outlook

From: Date: Wed, 20 Feb 2002 04:02:55 +0000
Subject: Re: problem with mail()/html/outlook
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85490@lists.php.net to get a copy of this message
A program I had written to send notification to recievers when a greeting card was sent to them...... ========================= <?php $msg="<html><head><title>Ind-e-glow Greetings.</title></head><body><h3>Dear Friend!</h3>\n<br>You have an e greeting waiting for you at <a href=\"http://www.bh-loh-inc.f2s.com.com/\">http://www.ind-e-glow.com/</a> sent by $sender. To view you need to <br>1) logon at http://www.ind-e-glow.com/<br>2)Click on the <b>view Card</b>.<br>3) Enter the below mentioned Card ID and the email address in the page that is displayed next<br><br><b>Card ID :: $Card_ID<br>\n This email ID ::$receiver</b>\n<br><br><a href=\"http://www.bh-loh-inc.f2s.com/template/disp.php?id=$Card_ID&es=$recei ver\">Or you may view it directly by clicking here.</a>\n<br><br>Count on our best compliments.<br><br><br><font size=\"1\">This is a mechine generated message. You may Contact us at <a href=\"mailto:webmaster@ind-e-glow.com\">webmaster@ind-e-glow.com</a></font> </body></html>"; mail("$receiver","Greetings from Ind-e-glow.com",$msg,"From: Ind-e-Glow Greetings <greetings@ind-e-glow.com>\nX-Sender: <greetings@ind-e-glow.com>\nX-Priority: 1\nReply-To: \"$sender\" <$sender>\nContent-Type: text/html; charset=iso-8859-1\n"); ?> ==================== This had worked without problems...... <ryan-php@p11.com> wrote in message news:1012854981.3c5ef0c5168c8@mail.p11.com... > I'm trying to send an html email via a php script, but I'm running into a > rather bizarre problem. I can get it to send the email just fine, but when it > is read on windows Outlook (macintosh outlook express are unaffected) clients, > it strips two characters after any '=' signs, so it plays havoc on the html it > tries to send: > > <div align="center"> > <table width="570" border="0" cellspacing="0" > cellpadding="0"> > > becomes: > <div align=enter"> > <table width=70" border=" cellspacing=" cellpadding="> > > Now, I'm sending all the right headers, I think: > > $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; > > I've read up on this as much as I can and it works for every other client other > than MS Outlook under Windows. Unfortuantely, that's a rather large percentage > of people that are going to get a foo'd message of mine. I know that there are > certain mime characters like '=2D' that mean certain things, could it be that > i'm not sending the right header and Outlook is interpreting a differnt mime > type, therefore munching lines as it parses them? > > Any help would be appreciated, > Ryan C. Creasey > Network Engineer > p11creative

« previous php.general (#85490) next »