Skip to content

itsallaboutpython/How-To-Send-Email-In-Python-Using-Smtplib-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demo code for All About Python's video on "How To Send Email In Python"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published