Generates a MIMEMultipart
message from a MailMessage
protocol buffer.
View aliases
Main aliases
`google.appengine.api.mail.mail_message_to_mime_message`
google.appengine.api.mail.MailMessageToMIMEMessage(
protocol_message
)
This function generates a complete MIMEMultipart
email object from a
MailMessage
protocol buffer. The body fields are sent as individual
alternatives if they are both present; otherwise, only one body part is sent.
Multiple entry email fields, such as 'To', 'Cc', and 'Bcc' are converted
to a list of comma-separated email addresses.
Args |
protocol_message
|
Message protocol buffer to convert to a MIMEMultipart
message.
|
Returns |
A MIMEMultipart message that represents the provided MailMessage .
|
Raises |
InvalidAttachmentTypeError
|
If the file type of the attachment is invalid.
|