twisted.mail.bounce
module documentationtwisted.mail
View Source
Support for bounce message generation.
Function | generateBounce | Generate a bounce message for an undeliverable email message. |
Generate a bounce message for an undeliverable email message.
Parameters | message | The undeliverable message. (type: a file-like object) |
failedFrom | The originator of the undeliverable message. (type: bytes
or unicode ) | |
failedTo | The destination of the undeliverable message. (type: bytes
or unicode ) | |
transcript | An error message to include in the bounce message. (type: bytes
or unicode ) | |
encoding | Encoding to use, default: utf-8 (type: str
or unicode ) | |
Returns | The originator, the destination and the contents of the bounce message.
The destination of the bounce message is the originator of the
undeliverable message. (type: 3-tuple
of (1) bytes ,
(2) bytes ,
(3) bytes ) |