SMTP via GMAIL
cbabcock at kolonelpanic.org
Thu Sep 18 21:52:48 CEST 2008
> >> Traceback (most recent call last):
> >> File "mail5.py", line 21, in <module>
> >> session = smtplib.SMTP(SMTPserver,port)
> >> File "/usr/local/lib/python2.5/smtplib.py", line 244, in __init__
> >> (code, msg) = self.connect(host, port)
> >> File "/usr/local/lib/python2.5/smtplib.py", line 301, in connect
> >> self.sock.connect(sa)
> >> File "<string>", line 1, in connect
> >> then conncetion time out.....
> > Could it be your ISP is blocking outgoing connections to port
> > 25?
> gmail doesn't accept mail via SMTP on port 25.
So what is the value of "port" when you are running this program?
More information about the Python-list