Howdy ya'll!! I'm using PHPMailer to send out a multipart email. My first question is what is the best way to test the alternate text? I've tried sending it to different email accounts to see if any of them will block the HTML and none do -- which I guess is good. My second question is that I've received emails before that have a full HTML layout with images, but they also have a basic HTML backup, and finally a text backup. How is this achieved? Is is just adding another MIME code block? If so, how would I do this in PHPMailer? Well, I guess I could try myself if I could figure out how to troubleshoot my HTML backup. Thanks in advance!!
multipart email with php -- multipart question
Collapse
X
-
Tags: None
-
-
Hey.
What is there to test? If you send both a HTML version and a Plain Text version then clients will be able to choose. - If you are unsure of whether the message works, send it to a HTML capable client and toggle between HTML and Plain Text views to see if they work properly.My first question is what is the best way to test the alternate text?
You can of course send multiple HTML attachments, but I do not know of a way to indicate to the email client which one is is the prefered version and which one is the fallback. Odds are that if the client blocks HTML they will block both versions.My second question is that I've received emails before that have a full HTML layout with images, but they also have a basic HTML backup, and finally a text backup.
However, I suppose you could try specifying the "level" for the HTML mime-type, but I don't know what that will do, really. I mean, you could try doing:
[code=text]
--123456748912345 6789
Content-Transfer-Encoding: 7bit
Content-type: text/html; level=3, charset="iso-8859-1"
<!-- Insert complex HTML -->
--123456748912345 6789
Content-Transfer-Encoding: 7bit
Content-type: text/html; charset="iso-8859-1"
<!-- Insert fallback HTML -->[/code]
But, again, I have no idea if this is even possible.Comment
-
Hmm...I wonder what was wrong with my writing. Anyway, I came across the text/enriched aspect of sending a mulitpart email. I think that's what I was talking about/looking for. I just remember that I got an email from like CGSociety and it defaulted with a nice layout of just background colors and text. I had to click to view the images which changed the whole layout. And yeah, I just realized my webmail can display messages like that yesterday, however Yahoo Gmail and Outlook don't seem to have that option. Thanks!!Comment
Comment