SMTP?

Ulf Engstrøm b2blink at hotmail.com
Wed Nov 24 18:11:20 CET 1999


I've build a little mailthingy based on the 11.9.2 SMTP Example  from Python 
Library Reference but when I use it I'll get an empty mail with no sender 
and no msg, eventhough I don't get any errors whatsoever...Do I have to 
change something with the headers? If yes, what?

Using the example as is (with the change of the servername) doesn't work, 
it'll come out as:

send: 'ehlo WKS0002.DEVELOPMENT.b2b-link.com\015\012'
reply: '250-nebb.no Hello WKS0002.DEVELOPMENT.b2b-link.com, ESMTP 
hello!\015\012
'
reply: '250-VRFY\015\012'
reply: '250-EXPN\015\012'
reply: '250-ETRN\015\012'
reply: '250 SIZE\015\012'
reply: retcode (250); Msg: nebb.no Hello WKS0002.DEVELOPMENT.b2b-link.com, 
ESMTP
hello!
VRFY
EXPN
ETRN
SIZE
send: 'mail FROM:<alexis> size=10\015\012'
reply: '250 <alexis>, Sender accepted\015\012'
reply: retcode (250); Msg: <alexis>, Sender accepted
send: 'rcpt TO:<ulf.engstroem at nebb.no>\015\012'
reply: '250 <ulf.engstroem at nebb.no>, Recipient ok\015\012'
reply: retcode (250); Msg: <ulf.engstroem at nebb.no>, Recipient ok
send: 'data \015\012'
reply: '354 Enter mail, end with <CRLF>.<CRLF>\015\012'
reply: retcode (354); Msg: Enter mail, end with <CRLF>.<CRLF>
data: (354, 'Enter mail, end with <CRLF>.<CRLF>')
send: 'Small msg\015\012'
send: '\015\012.\015\012'
reply: '250 Ok, message saved\015\012'
reply: retcode (250); Msg: Ok, message saved
data: (250, 'Ok, message saved')
send: 'quit \015\012'
reply: '221 See ya in cyberspace\015\012'
reply: retcode (221); Msg: See ya in cyberspace

Thanx a lot for all previous help :)
Best regards

Ulf Engstrøm

http://www.b2b-link.com
ulf.engstrom at b2b-link.com

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




More information about the Python-list mailing list