[Twisted-Python] smtp.SMTP help

Rudy Schockaert rudy.schockaert at pandora.be
Thu Oct 2 01:55:29 EDT 2003


Itamar Shtull-Trauring wrote:

>On Thu, 02 Oct 2003 07:18:51 +0200
>Rudy Schockaert <rudy.schockaert at pandora.be> wrote:
>
>  
>
>>I have been struggling with SMTP also. I noticed that there is a lot 
>>changing in that part lately, that's why I was still patient and was 
>>just waiting to see some doc pop up on the new way to use SMTP.
>>
>>Could someone send a small example of  how to use the news SMTP
>>module? Mayby an impementation of what Greg is trying to do would be
>>nice.
>>    
>>
>
>IIRC it was quite trivial. Make a class MyDelivery implementing
>IMessageDelivery, and then
>
>class MySMTP(smtp.ESMTP):
>    delivery = MyDelivery()
>
>factory = protocol.ServerFactory()
>factory.protocol = MySMTP
>reactor.listenTCP(25, factory)
>
>  
>
Thanks,

This is trivival indeed. Now, let's see how I can change behaviour 
dependant on where the message comes from (e.g. Intranet or Internet) or 
who sent it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20031002/f489eea9/attachment.htm 


More information about the Twisted-Python mailing list