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


Groups > comp.lang.python > #46613

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

From inq1ltd <inq1ltd@inqvista.com>
Subject Re: sendmail smtplib.SMTP('localhost') Where is the email?
Date 2013-05-31 12:07 -0400
Organization inqvista
References <7572490.mfSH6Zg6jY@mach-114-20> <20130530225512.GA60695@cskk.homeip.net>
Newsgroups comp.lang.python
Message-ID <mailman.2497.1370018510.3114.python-list@python.org> (permalink)

Show all headers | View raw


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

Your responses helped.

The mailg for linux gave me information I didn't expect.

regards,
jol







On Friday, May 31, 2013 08:55:12 AM Cameron Simpson wrote:
> 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,

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


Thread

Re: sendmail smtplib.SMTP('localhost') Where is the email? inq1ltd <inq1ltd@inqvista.com> - 2013-05-31 12:07 -0400

csiph-web