python help,

I've tried this code which I got from:
http://www.tutorialspoint.com/python/python_sending_email.htm


I build this file and run it 
---//---

#!/usr/bin/python
 
import smtplib
sender = "inq1...@inqvista.com"
receivers = ["webmas...@inqvista.com"]

message = """From: jol
To: webmaster 
Subject: SMTP e-mail test

This is a test e-mail message.
"""

try:
   smtpObj = smtplib.SMTP('localhost')
   smtpObj.sendmail(sender, receivers, message)
   print "Successfully sent email"
except SMTPException:
   print "Error: unable to send email" 

--//--

After running the the file and I get 
"Successfully sent email"

My question is why doesn't webmaster get an email?

jol









-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to