Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 20th, 2006, 3:01 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,188
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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?
Sane is online now   Reply With Quote
Old Jun 20th, 2006, 4:02 PM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
>>> import smtplib
>>> smtplib.SMTP('smtp.thegadgetadvisor.com')
<smtplib.SMTP instance at 0xb7d150ec>
Works for me.

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.
Arevos is offline   Reply With Quote
Old Jun 20th, 2006, 6:40 PM   #3
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,188
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is online now   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC