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


Groups > comp.lang.python > #46552 > unrolled thread

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

Started byCameron Simpson <cs@zip.com.au>
First post2013-05-31 08:55 +1000
Last post2013-05-31 08:55 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: sendmail smtplib.SMTP('localhost') Where is the email? Cameron Simpson <cs@zip.com.au> - 2013-05-31 08:55 +1000

#46552 — Re: sendmail smtplib.SMTP('localhost') Where is the email?

FromCameron Simpson <cs@zip.com.au>
Date2013-05-31 08:55 +1000
SubjectRe: sendmail smtplib.SMTP('localhost') Where is the email?
Message-ID<mailman.2458.1369954537.3114.python-list@python.org>
On 30May2013 15:48, inq1ltd <inq1ltd@inqvista.com> 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 <cs@zip.com.au>

As you can see, unraveling even a small part of 'sendmail' can introduce more
complexity than answers.        - Brian Costales, _sendmail_

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web