Python Smtplib Module
SMTP email sending — SMTP, sendmail, login, quit. This category documents 7 Python smtplib module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: smtplib.SMTP(), SMTP.sendmail(), SMTP.login(), SMTP.starttls(), SMTP.quit(), SMTP.ehlo(), smtplib.SMTP_SSL(). smtplib.SMTP() creates an SMTP client for sending emails. SMTP.sendmail() sends an email message from one address to one or more recipients. SMTP.login() authenticates to the SMTP server using a username and password. SMTP.starttls() puts the SMTP connection in TLS mode for encrypted communication. SMTP.quit() closes the SMTP connection gracefully. Smtplib Module belongs to the Concurrency & Networking group alongside Threading Module, Concurrent Module, Asyncio Module, Subprocess Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground.