smtplib — SMTP protocol client — Python 3.10.1 documentation
docs.python.org › 3 › libraryJan 03, 2022 · The smtplib module defines an SMTP client session object that can be used to send mail to any internet machine with an SMTP or ESMTP listener daemon. For details of SMTP and ESMTP operation, consult RFC 821 (Simple Mail Transfer Protocol) and RFC 1869 (SMTP Service Extensions). class smtplib. SMTP (host='', port=0, local_hostname=None, [timeout, ]source_address=None) ¶.