Sending e-mails with SMTP
We can send an e-mail from a Python script by using
smtplib module provides an SMTP objects which is used for sending mail by using either an SMTP or an Extended SMTP (ESMTP) protocol. The
Composing an e-mail message
Let us construct the e-mail message by using classes from the
email.mime module provides classes for creating the e-mail and MIME objects from scratch. MIME is an acronym for Multi-purpose Internet Mail Extensions. This is an ...