![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() |
SMTPlib - Connection reset by peer
Why is it that I can connect to here:
import smtplib
smtplib.SMTP('mail.nerdshack.com:2525')But none of these work? import smtplib
smtplib.SMTP('smtp.thegadgetadvisor.com')
>>> error: (10054, 'Connection reset by peer')import smtplib
smtplib.SMTP('smtp.thegadgetadvisor.com', 25)
>>> error: (10054, 'Connection reset by peer')import smtplib
smtplib.SMTP('smtp.thegadgetadvisor.com:25')
>>> error: (10054, 'Connection reset by peer')It is a working mailserver, and I've been told it uses port 25. Why does it reset my connection before it's even finished initiating? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
>>> import smtplib
>>> smtplib.SMTP('smtp.thegadgetadvisor.com')
<smtplib.SMTP instance at 0xb7d150ec>It could be that the server was down at the time you tried, or perhaps your ISP is blocking the connection as an antispam measure. Maybe the SMTP server you're trying to access has blocked a range of IP addresses, and your IP happens to be among them. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
Ahh. Yes. It was my ISP. Although the problem is unresolved, I was able to continue coding and get it working on other computers. Thank you very much Arevos.
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|