subject: subject of the email from_address: address the email was sent from recipients: list of email addresses of all recipients message_text: plain text message
subject: subject of the email from_address: address the email should appear to be sent from recipients: list of email addresses of all recipients html_content: HTML content of the message
plain_text_content: plain text fallback to send with the email
HtmlEmail instance
Initializes a new HtmlEmail object
Examples
Sending a plain text email
from customizing import utilities
message_text = u'''This is an example message text!
It contains multiple lines!
And even some non ascii characters! Ä Ö Ü'''
email = utilities.SimpleEmail(subject='Example email',
from_address='you@yourcompany.com',
recipients=['someone@yourcompany.com'],
message_text=message_text)
email.send()