sheila at spamcop.net
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.
On Wed, 24 Oct 2001 16:01:06 -0700, Cliff Wells
<logiplexsoftware at earthlink.net> wrote in comp.lang.python in article
<mailman.1003964907.14974.python-list at python.org>:
: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 "mail.earthlink.net" (my ISP) in place of "localhost" and my
:email address for the toaddrs:
: return raw_input(prompt).strip()
:fromaddr = prompt("From: ")
:# toaddrs = prompt("To: ").split()
:toaddrs = ["logiplexsoftware at earthlink.net"]
: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, ", ")))
: line = raw_input()
: except EOFError:
: if not line:
: msg = msg + line
:print "Message length is " + `len(msg)`
:server = smtplib.SMTP('mail.earthlink.net')
: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