Exemple #1
0
 def __init__(self, *a, **kw):
     ESMTPFactory.__init__(self, *a, **kw)
     self.delivery = ConsoleMessageDelivery()
     self.challengers = {
     'LOGIN': LOGINCredentials,
     'PLAIN': PLAINCredentials
     }
Exemple #2
0
 def buildProtocol(self, addr):
     p = ESMTPFactory.buildProtocol(self, addr)
     #self.delivery.cb = self.cb
     #p.delivery = self.delivery
     p.peer = addr.host
     p.portal = self.portal
     return p