Blog On Python, Machine Learning and Data Science Visit CodePerfectPLus
- GO to Account setting/Security
- click app password
- Select APP -> others, Select Device -> Others
- Copy paste the code in script.py
password
variable
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)
- file attachment in email
RegEx to verify the Emails
- Project: PyEmailer
- Author: CodePerfectPlus
- Language: Python
- Github: https://github.com/codePerfectPlus
- Website: http://codeperfectplus.herokuapp.com/