<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Itamar Shtull-Trauring wrote:<br>
<blockquote type="cite"
cite="mid20031002012609.5edafcac.itamar@itamarst.org">
<pre wrap="">On Thu, 02 Oct 2003 07:18:51 +0200
Rudy Schockaert <a class="moz-txt-link-rfc2396E" href="mailto:rudy.schockaert@pandora.be"><rudy.schockaert@pandora.be></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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)
</pre>
</blockquote>
Thanks,<br>
<br>
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.<br>
</body>
</html>