SMTP

Sarmad George sgeorge at coe.neu.edu
Thu Aug 6 23:21:34 EDT 2009


Good day all
I am new to the Python list
My question is here not Python as much as it is in servers

I have a code to send an email through my SMTP server - comcast Boston
fromaddrs = "******"
toaddrs = "sgeorge at coe.neu.edu"
msg = "Hello World"

server = smtplib.SMTP ('76.96.30.117', '25') #COMCAST BOSTON
server.set_debuglevel(1)
try:
    server.sendmail(fromaddrs, toaddrs, msg)
finally:
    server.quit()

Which basically sends a hello world message
Debugging gives me an indication of acceptance as seen below (and I as googled
it)
I tried the same from the University server, and I got the same results almost!
However, no emails in my Inbox when I log in - PLS can you explain the trouble?
Is it a firewall blocker?
Thanks alot


send: 'ehlo [127.0.1.1]\r\n'
reply: '250-OMTA03.emeryville.ca.mail.comcast.net hello [98.216.11.39], pleased
to meet you\r\n'
reply: '250-HELP\r\n'
reply: '250-AUTH LOGIN PLAIN CRAM-MD5\r\n'
reply: '250-SIZE 15728640\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250-STARTTLS\r\n'
reply: '250 OK\r\n'
reply: retcode (250); Msg: OMTA03.emeryville.ca.mail.comcast.net hello
[98.216.11.39], pleased to meet you
HELP
AUTH LOGIN PLAIN CRAM-MD5
SIZE 15728640
ENHANCEDSTATUSCODES
8BITMIME
STARTTLS
OK
send: 'mail FROM:<sarmad_edward at yahoo.com> size=11\r\n'
reply: '250 2.1.0 <sarmad_edward at yahoo.com> sender ok\r\n'
reply: retcode (250); Msg: 2.1.0 <sarmad_edward at yahoo.com> sender ok
send: 'rcpt TO:<smtp at coe.neu.edu>\r\n'
reply: '250 2.1.5 <smtp at coe.neu.edu> recipient ok\r\n'
reply: retcode (250); Msg: 2.1.5 <smtp at coe.neu.edu> recipient ok
send: 'data\r\n'
reply: '354 enter mail, end with "." on a line by itself\r\n'
reply: retcode (354); Msg: enter mail, end with "." on a line by itself
data: (354, 'enter mail, end with "." on a line by itself')
send: 'Hello World\r\n.\r\n'
reply: '250 2.0.0 REQK1c0070qYooa8PEQKQA mail accepted for delivery\r\n'
reply: retcode (250); Msg: 2.0.0 REQK1c0070qYooa8PEQKQA mail accepted for
delivery
data: (250, '2.0.0 REQK1c0070qYooa8PEQKQA mail accepted for delivery')
send: 'quit\r\n'
reply: '221 2.0.0 OMTA03.emeryville.ca.mail.comcast.net comcast closing
connection\r\n'
reply: retcode (221); Msg: 2.0.0 OMTA03.emeryville.ca.mail.comcast.net comcast
closing connection

Sarmad Edward George
Electrical Computer Eng
Northeastern Uni
Boston MA - USA




More information about the Python-list mailing list