Re: php formatted html shows up in Yahoo mail but not gmail
- From: Manuel Lemos <mlemos@xxxxxxx>
- Date: Sun, 29 Apr 2007 22:49:49 -0300
Hello,
on 04/29/2007 10:31 PM cybervigilante said the following:
I sent HTML formatted email, using PHP, to my Yahoo address from my
server, and it came out fine, styles and all. I sent it to my gmail
address to test it and all I see is the raw html code. But I do get
formatted email in gmail, so I know people make it work somehow. I'm
looking right at a gmail message that I copied to Dreamweaver and it's
using Strong and Red text attributes that work in gmail. But mine
don't.
What do you do different in gmail to get formatted HTML email?
You should not send HTML mail messages with a plain text alternative
part. When you do that, mail systems may take it as a sign of spam, as
real mail programs do not send messages that way.
You should compose a multipart/alternative message that contains a text
part and an HTML mail part.
If you do not know how to do that, take a look at this MIME message
class as it makes that task much simpler. Try the
test_simple_html_mail_message.php script.
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.
- Follow-Ups:
- Re: php formatted html shows up in Yahoo mail but not gmail
- From: Geoff Berrow
- Re: php formatted html shows up in Yahoo mail but not gmail
- From: Jerry Stuckle
- Re: php formatted html shows up in Yahoo mail but not gmail
- References:
- php formatted html shows up in Yahoo mail but not gmail
- From: cybervigilante
- php formatted html shows up in Yahoo mail but not gmail
- Prev by Date: Re: php formatted html shows up in Yahoo mail but not gmail
- Next by Date: Re: using echo but need something to execute php code
- Previous by thread: Re: php formatted html shows up in Yahoo mail but not gmail
- Next by thread: Re: php formatted html shows up in Yahoo mail but not gmail
- Index(es):
Relevant Pages
|