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
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