Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.72 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.72 KB

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