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?
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?