Table of Contents

Class: SMTPManagedRelayer Twisted-0.19.0/twisted/mail/relaymanager.py

SMTP Relayer which notifies a manager

Notify the manager about successful main, failed mail and broken connections

Base Classes   
relay.SMTPRelayer
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.


Table of Contents

This document was automatically generated on Sun Jul 14 19:52:48 2002 by HappyDoc version 2.0