I have a program to send mail using python smtplib. I have the mail sending part working fine, but I also need to capture the server return message after a mail has been sen
If you are using the sendmail method on an SMTP
instance, then it will return
a dictionary, with one entry for each recipient that was refused. Each entry contains a tuple of the SMTP error code and the accompanying error message sent by the server.
if you use the docmd method on the same class, the it will return
a 2-tuple composed of a numeric response code and the actual response line (multiline responses are joined into one long line.)