gmail doesn't like multipart/alternative MIME type?
May 29, 2008 9:30 AM
Subscribe
Does gmail not like the multipart/alternative MIME type?
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:
From: someone@somewhere.net
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="bufu8040bufu8040"
--bufu8040bufu8040
Content-Type: text/plain; charset="iso-8859-1"
text version of message
--bufu8040bufu8040
Content-Type: text/html; charset="iso-8859-1"
html version of message
--bufu8040bufu8040
posted by invitapriore to computers & internet (9 comments total)
Is the original preserved, if you go look at it, outside the rendering?
Suppose you insert text before the first demarcation, "this is outside the MIME tree, and should not be displayed." What does that do?
posted by cmiller at 9:48 AM on May 29, 2008