[issue36148] smtplib.SMTP.sendmail: mta status codes only accessible by local variables

sls report at bugs.python.org
Thu Feb 28 13:35:43 EST 2019


New submission from sls <sls at mailbox.org>:

MTA status codes (visible via setdebuglevel(1)) are not accessible as the `sendmail`-method stores them only locally (code, resp).

I suggest to store the mta status codes, for instance: "250, b'2.0.0 Ok: queued as XYZ" etc. in an instance attribute (tuple) to access them on smtp-sessions. 

As an email developer those information are very important to me.

----------
components: Library (Lib)
messages: 336864
nosy: sls
priority: normal
severity: normal
status: open
title: smtplib.SMTP.sendmail: mta status codes only accessible by local variables
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36148>
_______________________________________


More information about the Python-bugs-list mailing list