Sending_Email_Using_Python

Sending Emails Some important libraries you would import

  1. pip install smtplib
  2. pip install yagmail
  3. pip install requests
  4. pip install lxml.html Some packages: from itertools import cycle
  5. import traceback
  6. import smtplib, ssl
  7. import requests
  8. from lxml.html import fromstring
  9. import yagmail

Debugging: Note: if you are getting connection refused error then just follow below mentioned steps

  1. open the below given link
  2. https://myaccount.google.com/lesssecureapps
  3. and just turn on Allow less secure apps: on