Sheila King sheila at
Thu Oct 25 02:17:48 CEST 2001

AOL intercepts all Port 25 traffic. Therefore, you cannot send outbound
mail to a non-AOL smtp server via an AOL Internet connection.

Sheila King

On Wed, 24 Oct 2001 16:01:06 -0700, Cliff Wells
<logiplexsoftware at> wrote in comp.lang.python in article
<mailman.1003964907.14974.python-list at>:

:However - I tried it on someone 
:else's Windows PC who uses AOL (blech) and it failed with SMTPSenderRefused.  
:The problem is easily reproduced using the code from the smtplib module but 
:substituting "" (my ISP) in place of "localhost" and my 
:email address for the toaddrs:
:import smtplib
:import string
:def prompt(prompt):
:    return raw_input(prompt).strip()
:fromaddr = prompt("From: ")
:# toaddrs  = prompt("To: ").split()
:toaddrs = ["logiplexsoftware at"] 
:print "Enter message, end with ^D:"
:# Add the From: and To: headers at the start!
:msg = ("From: %s\r\nTo: %s\r\n\r\n"
:       % (fromaddr, string.join(toaddrs, ", ")))
:while 1:
:    try:
:        line = raw_input()
:    except EOFError:
:        break
:    if not line:
:        break
:    msg = msg + line
:print "Message length is " + `len(msg)`
:server = smtplib.SMTP('')
:server.sendmail(fromaddr, toaddrs, msg)
:It seems it should be legal to send directly to that server, since that's the 
:final destination anyway.  Am I wrong, or is just AOL?  I don't have access 
:to enough separate ISP's to test this very well.

More information about the Python-list mailing list