Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.127 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.75; '*S*': 0.00; '"""': 0.07; 'try:': 0.09; 'python': 0.11; 'received:66.96.186': 0.16; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'question': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; "doesn't": 0.30; 'code': 0.31; 'received:10.20.15': 0.31; 'received:10.20.18': 0.31; 'received:10.20.55': 0.31; 'received:eigbox.net': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; 'running': 0.33; 'received:10.20': 0.33; 'skip:# 10': 0.33; 'subject:the': 0.34; 'message.': 0.35; 'received:66': 0.35; 'except': 0.35; 'test': 0.35; 'url:rec- html40': 0.35; 'smtp': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'skip:& 20': 0.39; 'subject:': 0.39; 'help,': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'unable': 0.39; 'email?': 0.60; 'url:htm': 0.73; 'url:dtd': 0.80; 'email"': 0.84; 'message)': 0.84; 'subject:Where': 0.84; 'url:strict': 0.95 X-Authority-Analysis: v=2.0 cv=dt1Z+ic4 c=1 sm=1 a=BO8vbVALcX4m3H4JO8/J2w==:17 a=spKFjZujUncA:10 a=2Cs5qbXtQ68A:10 a=8REnW-7O1LoA:10 a=OmMKortqy18A:10 a=tTExfe6FAAAA:8 a=u0MIY9aCI6QA:10 a=EoIy3buNAAAA:8 a=Y_GwzMeF-4ZByyXC87AA:9 a=CjuIK1q_8ugA:10 a=k1LVuIZnLtkA:10 a=qMDZ_Ezp4_0A:10 a=SSmOFEACAAAA:8 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=thWPIx1cGvW3i55q:21 a=eBvjjtMVdWwtQGedh7GyLg==:117 X-EN-OrigOutIP: 10.20.18.5 X-EN-IMPSID: iKrG1l00H06Zqne01KrGTo From: inq1ltd To: python-list@python.org Subject: sendmail smtplib.SMTP('localhost') Where is the email? Date: Thu, 30 May 2013 15:48:20 -0400 Organization: inqvista User-Agent: KMail/4.7.2 (Linux/2.6.37.6-24-desktop; KDE/4.7.2; i686; ; ) In-Reply-To: <4773190.v3vY0HWMWS@mach-114-20> References: <5190b049$0$29978$c3e8da3$5496439d@news.astraweb.com> <4773190.v3vY0HWMWS@mach-114-20> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart3312784.SirJlq6pht" Content-Transfer-Encoding: 7Bit X-EN-UserInfo: ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195 X-EN-AuthUser: inq1ltd@inqvista.com Sender: inq1ltd X-EN-OrigIP: 71.246.147.162 X-EN-OrigHost: pool-71-246-147-162.rich.east.verizon.net X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 109 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369945339 news.xs4all.nl 15876 [2001:888:2000:d::a6]:40962 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46541 --nextPart3312784.SirJlq6pht Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 = "inq1ltd@inqvista.com" receivers = ["webmaster@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 --nextPart3312784.SirJlq6pht Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

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 = "inq1ltd@inqvista.com"

receivers = ["webmaster@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

 

 

 

 

 

 

 

 

 

 

--nextPart3312784.SirJlq6pht--