'called when e-mail has been sent
we will always get 0 or 1 addresses.'

def sentMail(self, code, resp, numOk, addresses, log):

    message = self.names[0]
    if (code in smtp.SUCCESS):
        self.manager.notifySuccess(self.factory, message)
    else:
        self.manager.notifyFailure(self.factory, message)
    del self.messages[0]
    del self.names[0]
