email.message.EmailMessage.make_alternative()

make_alternative(boundary=None)

Convert a non-multipart or a multipart/related into a multipart/alternative, moving any existing Content- headers and payload into a (new) first part of the multipart. If boundary is specified, use it as the boundary string in the multipart, otherwise leave the boundary to be automatically created when it is needed (for example, when the message is serialized).

doc_python
2016-10-07 17:32:37
Comments
Leave a Comment

Please login to continue.