gmail doesn't like multipart/alternative MIME type?
May 29, 2008 9:30 AM Subscribe
Does gmail not like the multipart/alternative MIME type?
posted by invitapriore to Computers & Internet (9 answers total)
I'm trying to use php's mail() function to send a multipart/alternative email out to some users. As far as I can tell, I've got the headers and body text right, but when I test it on myself the mail appears blank in the gmail client. Thunderbird (set up to check the same gmail account) seems to like it ok, displaying the html section without issue. What gives?
Here's an example message (actually generated, but with names/content replaced) for your perusal:
Content-Type: multipart/alternative; boundary="bufu8040bufu8040"
Content-Type: text/plain; charset="iso-8859-1"
text version of message
Content-Type: text/html; charset="iso-8859-1"
html version of message