Click to See Complete Forum and Search --> : [RESOLVED] Anybody worked with multipart mail?
so_is_this
10-22-2006, 03:42 AM
I have a problem where I'm trying to send both a text copy and an html copy of my email plus attach one or more binary files. The mail sends OK, but what I'm ending up with is all the MIME formatting, headers, both copies of the email body (and html not rendered), and the raw base64 data showing. Help? :D
mudelta
10-22-2006, 03:58 AM
i never used it, but this link would help you:
http://www.zend.com/zend/spotlight/sendmimeemailpart1.php#Heading4
felgall
10-22-2006, 04:45 AM
Without seeing the resultant code I can't really tell what you have done wrong. if I could see one of the emails that your code produces I could probably work out what is wrong with it as I have written my own email script that can generate all the different variations.
so_is_this
10-22-2006, 05:01 AM
Oh, glory, glory... I found my typo. Thanks.
so_is_this
10-24-2006, 11:46 AM
By the way, all... Standard MIME multipart formatting generally uses the following Content-Type setting:
multipart/mixed
I found that, in my case, the following Content-Type works much better -- and as desired:
multipart/alternate
EDIT: This is so that, when including both text and html versions of the body text, the mail client will not display both -- only the one that the mail client is most suited for displaying.