SMTP via GMAIL
Grant Edwards
grante at visi.com
Wed Sep 17 22:58:11 EDT 2008
On 2008-09-18, Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> wrote:
> In message
><973f75d4-90f5-4930-9107-15fc8651196d at v16g2000prc.googlegroups.com>, sui
> wrote:
>
>> 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.
--
Grant
More information about the Python-list
mailing list