email.encoders.encode_base64()

email.encoders.encode_base64(msg)

Encodes the payload into base64 form and sets the Content-Transfer-Encoding header to base64. This is a good encoding to use when most of your payload is unprintable data since it is a more compact form than quoted-printable. The drawback of base64 encoding is that it renders the text non-human readable.

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

Please login to continue.