Function
email.Encoders.encode_base64

Signature

encode_base64(msg)

Documentation String

Encode the message's payload in Base64.

Also, add an appropriate Content-Transfer-Encoding header.