twisted.mail.test.test_smtp.SimpleDelivery(object) class documentationtwisted.mail.test.test_smtp
(View In Hierarchy)
Implements interfaces: twisted.mail.interfaces.IMessageDelivery
SimpleDelivery
is a message delivery factory with no interesting behavior.
| Method | __init__ | Undocumented | 
| Method | receivedHeader | Generate the Received header for a message. | 
| Method | validateFrom | Validate the address from which the message originates. | 
| Method | validateTo | Validate the address for which the message is destined. | 
Generate the Received header for a message.
| Parameters | helo | The argument to the HELO command and the client's IP address. (type: 2- tupleofbytesandbytes.) | 
| origin | The address the message is from (type: Address) | |
| recipients | A list of the addresses for which this message is bound. (type: listofUser) | |
| Returns | The full "Received"header string. (type:bytes) | |
Validate the address from which the message originates.
| Parameters | helo | The argument to the HELO command and the client's IP address. (type: 2- tupleofbytesandbytes.) | 
| origin | The address the message is from (type: Address) | |
| Returns | originor aDeferredwhose
callback will be passedorigin. (type:DeferredorAddress) | |
| Raises | SMTPBadSender | Raised of messages from this address are not to be accepted. | 
Validate the address for which the message is destined.
| Parameters | user | The address to validate. (type: User) | 
| Returns | A Deferredwhich becomes, or a callable which takes no arguments and returns an object
implementingIMessageSMTP.
This will be called and the returned object used to deliver the message 
when it arrives. (type: no-argument callable) | |
| Raises | SMTPBadRcpt | Raised if messages to the address are not to be accepted. |