Followup of the compatibility issue of smtplib

Steve Holden sholden at holdenweb.com
Mon Aug 6 07:55:46 EDT 2001


"Dirksen Lau" <dirksen.lau at polyu.edu.hk> wrote in message
news:mailman.997057809.6324.python-list at python.org...
Hi,

As Steve suggested, I run my script in debug mode, but don't find anything
unusual(the mail still doesn't get to the destination). I attach the dubug
log below, and please point out the trouble spot:

connect: ('smtp.polyu.edu.hk', 25)
reply: '220 hkpa04.polyu.edu.hk ESMTP service (Netscape Messaging Server
4.15 Pa
tch 2 (built May 30 2000))\015\012'
reply: retcode (220); Msg: hkpa04.polyu.edu.hk ESMTP service (Netscape
Messaging
 Server 4.15 Patch 2 (built May 30 2000))
connect: hkpa04.polyu.edu.hk ESMTP service (Netscape Messaging Server 4.15
Patch
 2 (built May 30 2000))
send: 'ehlo iceman\015\012'
reply: '250-hkpa04.polyu.edu.hk\015\012'
reply: '250-PIPELINING\015\012'
reply: '250-HELP\015\012'
reply: '250-ETRN\015\012'
reply: '250-DSN\015\012'
reply: '250 SIZE 10485760\015\012'
reply: retcode (250); Msg: hkpa04.polyu.edu.hk
PIPELINING
HELP
ETRN
DSN
SIZE 10485760
send: 'mail FROM:<icdcliu at polyu.edu.hk> size=5\015\012'
reply: '250 Sender <icdcliu at polyu.edu.hk> and extensions (size=5)
Ok\015\012'
reply: retcode (250); Msg: Sender <icdcliu at polyu.edu.hk> and extensions
(size=5)
 Ok
send: 'rcpt TO:<dl at yahoo.com>\015\012'
reply: '250 Recipient <dl at yahoo.com> Ok\015\012'
reply: retcode (250); Msg: Recipient <dl at yahoo.com> Ok
send: 'data \015\012'
reply: '354 Ok Send data ending with <CRLF>.<CRLF>\015\012'
reply: retcode (354); Msg: Ok Send data ending with <CRLF>.<CRLF>
data: (354, 'Ok Send data ending with <CRLF>.<CRLF>')
send: 'achee'        <<<<<<<<<<<<< !!!!!!!!HERE!!!!!!!! <<<<<<<<<<<<<
send: '\015\012.\015\012'
reply: '250 Message received: GHKSNH00.4FJ\015\012'
reply: retcode (250); Msg: Message received: GHKSNH00.4FJ
data: (250, 'Message received: GHKSNH00.4FJ')
achee
send: 'quit \015\012'
reply: '221 hkpa04.polyu.edu.hk ESMTP server closing connection\015\012'
reply: retcode (221); Msg: hkpa04.polyu.edu.hk ESMTP server closing
connection

OK, I marked the trouble spot, did you find it? :-)

The major problem seems to be that your body is not RFC822-compliant. Try
putting a few headers in there, followed by a blank line and some text. The
interactions between the client and the server look fine.

regards
 STeve
--
http://www.holdenweb.com/








More information about the Python-list mailing list