Set the debug output level. A non-false value results in debug messages for connection and for all messages sent to and received from the server.
smtplib/SMTP.set_debuglevel
SMTP.set_debuglevel