flask-mail
flask-mail copied to clipboard
Allow custom media subtypes
Hi.
I've added Message constructor argument to override default MIME subtype name (mixed for multipart, plain for text).
multipart/mixed subtype caused problems in some email clients when I tried to inline images using CIDs. As this RFC states CIDs are supposed to work if message content type is multipart/related which tells the client to assume that some parts are related to others. Otherwise all parts are assumed to be self contained and CID link may not work.
Thanks!
Is it possible to do this without modifying the current version?
Fixed my issue of hmtl+text emails with embedded images using CID.
Thanks a lot !