[Tutor] So close! But ... error: (10054, 'Connection reset by peer')

2006-07-16 Thread Grady Henry
I think that I am so close to getting this simple program to run correctly: # Import smtplib for the actual sending functionimport smtplib # Import the email modules we'll needfrom email.MIMEText import MIMEText # Open a plain text file for reading. For this example, assume that# the

Re: [Tutor] So close! But ... error: (10054, 'Connection reset by peer')

2006-07-16 Thread Michael P. Reilly
You are running on a PC, which doesn't have a SMTP server running on it. The default hostname for smtplib.SMTP().connect() is to localhost (your own machine). You will need to find out the hostname of the mail server that your ISP provides. You probably set it when you set up your email (based on