Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multipart/mixed or alternative for attachments?

Status
Not open for further replies.

organicg

Programmer
Oct 21, 2002
151
US
I'm building emails from scratch. I've read RFC 1521, so understand how to do this. I use a "content-type: multipart/alternative" and include both plain and html bodyparts in the email.
My question is whether to use "content-type: multipart/alternative or multipart/mixed when I also add an attachment. The examples I've seen use "mixed" but then both the plain and html parts show. It works correctly on my dev box when I change it to "alternative"(only one bodypart shows along with the attachment), but I don't see anyone else using that when adding attachments...so I'm a little nervous about using it.
Any input?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top