Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 473 Bytes

File metadata and controls

9 lines (7 loc) · 473 Bytes

SMTP mailing

  • smtplib - provides SMTP mail service in python.
  • EmailMessage - provides the core functionality for setting and querying header fields, for accessing message bodies, and for creating or modifying structured messages.
  • starttls - provides secure coonection.
  • Port 25 or port 587 can be used for SMTP server.

Note:

  • Due to change in Gmail's security policy, turn on double verification and get 16 digit verification code to send mail using this script.