Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46541

sendmail smtplib.SMTP('localhost') Where is the email?

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 <SRS0=A611f+=PP=inqvista.com=inq1ltd@eigbox.net>
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 <inq1ltd@inqvista.com>
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> <avhumdFft7tU1@mid.individual.net> <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 <inq1ltd@inqvista.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2450.1369945339.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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









Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Off topic] Software epigrams Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-13 09:20 +0000
  Re: [Off topic] Software epigrams "marduk@python.net" <marduk@python.net> - 2013-05-13 10:56 -0400
  Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-14 03:47 +1000
  Re: [Off topic] Software epigrams Skip Montanaro <skip@pobox.com> - 2013-05-13 13:02 -0500
    Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-13 18:42 +0000
      Re: [Off topic] Software epigrams Fábio Santos <fabiosantosart@gmail.com> - 2013-05-13 21:49 +0100
        Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-15 17:24 +0000
          Re: [Off topic] Software epigrams Fábio Santos <fabiosantosart@gmail.com> - 2013-05-15 18:49 +0100
            Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-15 18:27 +0000
              Re: [Off topic] Software epigrams Fábio Santos <fabiosantosart@gmail.com> - 2013-05-16 01:21 +0100
                Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-16 14:23 +0000
                Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-17 00:37 +1000
                Re: Software epigrams rusi <rustompmody@gmail.com> - 2013-05-16 08:06 -0700
                Re: Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-17 01:19 +1000
          python 2.7 vs 2.5 inq1ltd <inq1ltd@inqvista.com> - 2013-05-15 16:56 -0400
          sendmail smtplib.SMTP('localhost') Where is the email? inq1ltd <inq1ltd@inqvista.com> - 2013-05-30 15:48 -0400
          Re: sendmail smtplib.SMTP('localhost') Where is the email? Chris Angelico <rosuav@gmail.com> - 2013-05-31 08:13 +1000
          Re: sendmail smtplib.SMTP('localhost') Where is the email? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-30 19:23 -0400
  Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-14 04:12 +1000
    Re: [Off topic] Software epigrams Dan Sommers <dan@tombstonezero.net> - 2013-05-14 03:08 +0000
      Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-14 13:28 +1000
      Re: Software epigrams rusi <rustompmody@gmail.com> - 2013-05-15 20:55 -0700

csiph-web