Followup of the compatibility issue of smtplib 
Author Message
 Followup of the compatibility issue of smtplib

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


Ok\015\012'

(size=5)
 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'
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



Fri, 23 Jan 2004 08:30:00 GMT  
 Followup of the compatibility issue of smtplib

Quote:

> 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:
[...]
> 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'
> send: '\015\012.\015\012'

Maybe the server is just being "smart" and knows that it is
pointless to send a message with no valid header tags, and
no valid body!  (Header tags must be of the form "tag: stuff"
and the body is separated from the headers by a blank line.)

I suggest again that you try following *my* suggestion :-)
and connect manually, with Telnet.  Once you can successfully
send a message manually, go back and try to use python to
generate the same conversation.  Until then, no point blaming
Python when you have no idea who is really at fault...

--
----------------------
Peter Hansen, P.Eng.



Fri, 23 Jan 2004 11:46:07 GMT  
 Followup of the compatibility issue of smtplib

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


Ok\015\012'

(size=5)
 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/



Fri, 23 Jan 2004 19:55:46 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Compatibility of smtplib with some SMTP server

2. Compatibility issues

3. RARS/C55 compatibility issue

4. Question: any compatibility issue between Clipper 5.3 and 5.01

5. Rexx compatibility issues

6. ANSI compatibility issue

7. CFP: The AI Pride Issue (IEEE intelligent systems special issue)

8. Using smtplib login with esmtp

9. smtplib and passwd's

10. Programming Python 2E: question on smtplib example

11. Smtplib and exceptions- why it does NOT work

12. smtplib

 

 
Powered by phpBB® Forum Software