Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

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.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.