Open terminal and type the following command
git clone https://github.com/visheshdvivedi/How-To-Send-Email-In-Python-Using-Smtplib-Tutorial
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
- Youtube: Click here
- Instagram: Click here
- Blog-site: Click here