SMTP Relayer which notifies a manager
Notify the manager about successful main, failed mail
and broken connections
Methods
|
|
__init__
connectionFailed
connectionLost
lineReceived
sentMail
|
|
__init__
|
__init__ (
self,
messages,
manager,
)
initialize with list of messages and a manager
messages should be file names.
manager should support .notifySuccess, .notifyFailure
and .notifyDone
|
|
connectionFailed
|
connectionFailed ( self )
called when connection could not be made
our manager should be notified that this happened,
it might prefer some other host in that case
|
|
connectionLost
|
connectionLost ( self )
called when connection is broken
notify manager we will try to send no more e-mail
|
|
lineReceived
|
lineReceived ( self, line )
|
|
sentMail
|
sentMail ( self, addresses )
called when e-mail has been sent
we will always get 0 or 1 addresses.
|
|