send_email
module provides classes for sending emails from Jython. Function | Parameters | Return Value | Description |
---|---|---|---|
_Email.send(self) |
Sends the email using the SMTP server configured in smtp_server_adress |
Function | Parameters | Return Value | Description |
---|---|---|---|
SimpleEmail.__init__(self, subject, from_address, recipients, message_text) |
subject: The subject of the email from_address: The adress the email should appear to be sent from recipients: A list of email addresses of all recipients message_text: A plain text message |
SimpleEmail instance |
Initialize a new SimpleEmail object |
Function | Parameters | Return Value | Description |
---|---|---|---|
HtmlEmail.__init__(self, subject, from_address, recipients, html_content, plain_text_content='') |
subject: The subject of the email from_address: The adress the email should appear to be sent from recipients: A list of email addresses of all recipients html_content: The HTML content of the message plain_text_content: A plain text fallback to send with the email |
HtmlEmail instance |
Initialize a new HtmlEmail object |
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()