Skip to content

Files

Latest commit

9138754 · Jul 19, 2021

History

History
This branch is 854 commits behind larymak/Python-project-Scripts:main.

Sending-Emails

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 29, 2021
May 29, 2021
Jul 19, 2021
May 29, 2021

README.md

Sending Email

Description

This snippet of code will send emails from your account to one or multiple accounts.

Requirements

$ pip install emails

$ pip install secure-smtplib

Steps To Execution

  • First of all you need to Enable Less Secure app access from your sending email account. (Click Here for reference !!)
  • Fork this repo and navigate to Sending-Email folder
  • Open code.py in any text/code editor
  • Write necessary modification in code like your mail-id , password , reciever's mail id , send file name etc..
  • Run this code.py $ python code.py
  • Check if reciever got the mails or not !!!

Extra

  • Note that you can send emails to multiple accounts by adding [email1,email2.email3,..,emailN] to (TO:) section in code.
  • I have aaded HTML using add_alternative, so it will work for sending emails using html formats.
  • I have also added add_attachments so that you can send files with email
  • Those who don't want any functionality, fill free to comment out that portion of code.