The Envelope class.
Address formats
The following formats are supported for e-mail addresses:
Whenever you come to manipulate addresses feel free to use any (or all) of the formats above.
Parameters: |
|
---|
Attaches a file located at file_path to the envelope. If mimetype is not specified an attempt to guess it is made. If nothing is guessed then application/octet-stream is used.
Adds a BCC address.
Adds a CC address.
Adds a custom header.
Adds a To address.
List of BCC addresses.
List of CC addresses.
Message charset.
Clears list of BCC addresses.
Clears list of CC addresses.
Clears custom headers.
Clears list of To addresses.
Dictionary of custom headers.
Sends the envelope using a freshly created SMTP connection. args and kwargs are passed directly to envelopes.conn.SMTP constructor.
Returns a tuple of SMTP object and whatever its send method returns.
List of To addresses.
Returns the envelope as email.mime.multipart.MIMEMultipart.