I'm building emails from scratch and I've read RFC 1521. 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, which is not what I want. 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 not sure that's the correct way.
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, which is not what I want. 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 not sure that's the correct way.
Any input?