Used to talk to your "relay server" or smart host, this is
probably the most important class in the handlers next to the
lamson.routing.Router. It supports a few simple operations for sending
mail, replying, and can log the protocol it uses to stderr if you set
debug=1 on __init__.
|
|
__init__(self,
host='127.0.0.1',
port=25,
username=None,
password=None,
ssl=False,
starttls=False,
debug=0)
The hostname and port we're connecting to, and the debug level
(default to 0). |
source code
|
|
|
|
|
|
|
deliver(self,
message,
To=None,
From=None)
Takes a fully formed email message and delivers it to the configured
relay server. |
source code
|
|
|
|
|
|
|
|
|
|
reply(self,
original,
From,
Subject,
Body)
Calls self.send but with the from and to of the original message
reversed. |
source code
|
|
|
|
send(self,
To,
From,
Subject,
Body)
Does what it says, sends an email. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|