module documentation
Support for bounce message generation.
Function | generate |
Generate a bounce message for an undeliverable email message. |
Constant | BOUNCE |
Undocumented |
Generate a bounce message for an undeliverable email message.
Parameters | |
message:a file-like object | The undeliverable message. |
failedbytes or unicode | The originator of the undeliverable message. |
failedbytes or unicode | The destination of the undeliverable message. |
transcript:bytes or unicode | An error message to include in the bounce message. |
encoding:str or unicode | Encoding to use, default: utf-8 |
Returns | |
3-tuple of (1) bytes , (2) bytes , (3) bytes | The originator, the destination and the contents of the bounce message. The destination of the bounce message is the originator of the undeliverable message. |