how do i fix smtplib.SMTPAuthenticationError

Viewed 18

how to i get to use smtp, now that google had permanently turned off the access by less secured apps

`with smtplib.SMTP("smtp.gmail.com", 587) as connection: connection.starttls() connection.login(user=my_email, password=password)

connection.sendmail(from_addr=my_email,to_addrs=recevier_mail,msg="Subject:Hello\n\nHello, This is my message") `

0 Answers
Related