Smtplib module

Gerhard Häring gh_pythonlist at gmx.de
Sun Oct 21 03:56:58 CEST 2001


On Sun, Oct 21, 2001 at 01:29:16AM +0000, Grant Edwards wrote:
> On Sun, 21 Oct 2001 00:14:35 +0200, Gerhard Häring wrote:
> >On Sat, Oct 20, 2001 at 11:41:34PM +0200, A wrote:
> 
> >> I want to use smtplib module for sending emails.  Is there any way how
> >> I can test a return code, generated by this module, to see if an email
> >> was accepting for delivery, for example?
> >
> >No, there is no way to do this. But this is a "feature" of
> >SMTP, not of Python's smtplib.
> 
> Sure there is.  There's no way to know if the message was
> delivered or read, but you can certainly find out if the SMTP
> server accepted it. The documentation for the "sendmail" method
> states: [...]

Ok. I confused "accepted for delivery" with "actually delivered".

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list