multipart email with php -- multipart question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fishnfrogs
    New Member
    • Nov 2009
    • 20

    multipart email with php -- multipart question

    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!!
  • MusoFreak200
    New Member
    • Oct 2009
    • 96

    #2
    man you won't attract help from the experts like: Markus and Dormilich, if you write like that...

    i'm sorry but i can't help you in any other way...

    soz...
    cya
    Last edited by Dormilich; Mar 31 '10, 06:10 PM. Reason: please write our names correctly ;)

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hey.

      My first question is what is the best way to test the alternate text?
      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 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.
      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.

      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

      • fishnfrogs
        New Member
        • Nov 2009
        • 20

        #4
        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

        Working...