Part of bzrlib.smtp_connection View In Hierarchy
This is a gateway between bzrlib.config.Config and smtplib.SMTP. It understands the basic bzr SMTP configuration information: smtp_server, smtp_username, and smtp_password.
Method | __init__ | Undocumented |
Static Method | get_message_addresses | Get the origin and destination addresses of a message. |
Method | send_email | Send an email message. |
Method | _connect | If we haven't connected, connect and authenticate. |
Method | _create_connection | Create an SMTP connection. |
Method | _authenticate | If necessary authenticate yourself to the server. |
Parameters | message | A message object supporting get() to access its headers, like email.Message or bzrlib.email_message.EmailMessage. |
Returns | A pair (from_email, to_emails), where from_email is the email address in the From header, and to_emails a list of all the addresses in the To, Cc, and Bcc headers. |