Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.mb-net.net!open-news-network.org!news.stack.nl!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.057 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'python': 0.11; 'command:': 0.16; 'dig': 0.16; 'discussion.': 0.16; 'empty,': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'in-reply-to:': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'references:': 0.16; 'simpson': 0.16; 'discussions': 0.16; 'wrote:': 0.18; 'command': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'why.': 0.24; 'header': 0.24; 'cheers,': 0.24; 'question': 0.24; "i've": 0.25; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'unix': 0.29; "doesn't": 0.30; 'see,': 0.30; 'code': 0.31; 'lines': 0.31; 'that.': 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; 'url:python': 0.33; 'running': 0.33; 'brian': 0.33; 'subject:the': 0.34; 'anywhere': 0.35; 'but': 0.35; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'should': 0.36; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'help,': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'even': 0.60; 'remove': 0.60; 'read': 0.60; 'easy': 0.60; 'email?': 0.60; 'logs': 0.60; 'tell': 0.60; 'new': 0.61; 'first': 0.61; 'content-disposition:inline': 0.62; 'more': 0.64; 'subject': 0.69; 'url:htm': 0.73; 'introduce': 0.78; 'complexity': 0.84; 'email"': 0.84; 'happened.': 0.84; 'message)': 0.84; 'subject:Where': 0.84 Date: Fri, 31 May 2013 08:55:12 +1000 From: Cameron Simpson To: python-list@python.org Subject: Re: sendmail smtplib.SMTP('localhost') Where is the email? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7572490.mfSH6Zg6jY@mach-114-20> User-Agent: Mutt/1.5.21 (2010-09-15) References: <7572490.mfSH6Zg6jY@mach-114-20> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=BPvrNysG c=1 sm=1 a=wom5GMh1gUkA:10 a=0U4G2F8bR1wA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=zhCJS8KoW00A:10 a=tTExfe6FAAAA:8 a=EoIy3buNAAAA:8 a=82j9dJM-mh9VMRjCQAEA:9 a=CjuIK1q_8ugA:10 a=k1LVuIZnLtkA:10 a=qMDZ_Ezp4_0A:10 a=ChdAjXE5lkUvdteQbhpnkQ==:117 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: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369954537 news.xs4all.nl 15894 [2001:888:2000:d::a6]:39234 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46552 On 30May2013 15:48, inq1ltd wrote: | python help, Please do not make new discussions by replying to an old discussion. It is not enough to change the subject line; unless you also remove any References: and In-Reply-To: header lines your message is still considered part of the old discussion. | 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 [...] | smtpObj = smtplib.SMTP('localhost') | smtpObj.sendmail(sender, receivers, message) | print "Successfully sent email" [...] | After running the the file and I get | "Successfully sent email" | | My question is why doesn't webmaster get an email? Well, this suggests that the message has been accepted by the mail system on localhost. Not that final delivery was made anywhere else. You now have to read the log files on your mail system to see what happened. One easy check to do first is to see if it is still in your mail system but undelivered. On a UNIX system running the command: mailq should tell you that. If the queue is empty, the message has been sent somewhere and you must dig through the logs to find out where. If the message is in the queue then the "mailq" command will probably give a suggestion as to why. Cheers, -- Cameron Simpson As you can see, unraveling even a small part of 'sendmail' can introduce more complexity than answers. - Brian Costales, _sendmail_