Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 1.29 KB

File metadata and controls

32 lines (30 loc) · 1.29 KB

How To Send Email In Python Using Smtplib Tutorial

Demo script to send email in python using smtplib package

ADD VIDEO LINK

Installation

Open terminal and type the following command

git clone https://github.com/visheshdvivedi/How-To-Send-Email-In-Python-Using-Smtplib-Tutorial

Usage

Open text_mail.py and html_mail.py and change the following values:

  • FROM_EMAIL: the email address of the email account used to send the mail
  • TO_EMAIL: the email address to send the mail to For text_mail.py script, change the following:
  • MESSAGE: the plain text message to send through email For html_mail.py script, change the following:
  • mail.html: the HTML mail content to send through mail Once done, run the script through the following commands
python text_mail.py

or

python html_mail.py

To know how the script works, check out my blog: Click here

To get more info, check out my