Skip to content

Py-Contributors/PyEmailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header

Python 3.7 issues forks stars License

Visitor Count

Blog On Python, Machine Learning and Data Science Visit CodePerfectPLus

Create App Password in gmail.

  • GO to Account setting/Security
  • click app password
  • Select APP -> others, Select Device -> Others
  • Copy paste the code in script.py password variable

Usage

git clone https://github.com/codePerfectPlus/PyEmailer
cd PyEmailer
from src.send_email import PyEmailer

your_email_id = "your_email_id"
your_app_password = "your_app_password"
email_subject = "email_subject_here"
email_content = "<h1> Email Content can be html too</h1>"
listOfEmail = ["destination1@gmail.com", "destination2@gmail.com"]

pyemail = PyEmailer(your_email_id, your_app_password)

if __name__ == "__main__":
    pyemail.sendEmail(email_subject, email_content, listOfEmail)

Upcoming features

  • file attachment in email
  • RegEx to verify the Emails

Project