Python comes with the built-in smtplib module for sending emails using the Simple Mail Transfer Protocol (SMTP). smtplib uses the RFC 821 protocol for SMTP. Although the majority of email providers use the same connection ports as the ones in this tutorial, you can run a quick Google search to confirm yours.