OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

SMTP Authentication Error: Username and Password not accepted:

  • Thread starter Thread starter NAVYA REDDY
  • Start date Start date
N

NAVYA REDDY

Guest
My email and password are correct but I'm not able to send email using my script.

Code:
import smtplib
content ="hello"
mail = smtplib.SMTP("smtp.gmail.com",587)
mail.ehlo()
mail.starttls()
mail.login('[email protected]','password')
mail.sendmail('[email protected]','[email protected]',content)
mail.close()
<p>My email and password are correct but I'm not able to send email using my script.</p>

<pre><code>import smtplib
content ="hello"
mail = smtplib.SMTP("smtp.gmail.com",587)
mail.ehlo()
mail.starttls()
mail.login('[email protected]','password')
mail.sendmail('[email protected]','[email protected]',content)
mail.close()
</code></pre>
 

Latest posts

Top