Home | Trees | Indices | Help |
|
---|
|
object --+ | Dispatch
SMTP message dispatch class.
An instance of the Dispatch class is created for each SMTP connection. Usually, this means one Dispatch instance per running thread.
Example usage:
import turbomail dispatch = turbomail.Dispatch("localhost") message = turbomail.Message( "from@localhost", "to@localhost", "Subject", plain="Hello world!" ) dispatch(message)
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
connected Return the current SMTP connection status. |
|||
Inherited from |
|
Initialize the Dispatch class. Authentication is only performed if both username and password are not None. An instance of Dispatch is callable.
|
Connect to the SMTP server if not already connected. This process also automatically enables TLS, if available, and authenticates against the username and password previously provided. |
Deliver a message via the current SMTP connection. Calling an instance of the Dispatch class will automatically connect, if needed, and will also automatically disconnect if debug mode has been enabled.
|
|
connectedReturn the current SMTP connection status.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 1 11:33:18 2008 | http://epydoc.sourceforge.net |