Skip to content
Advertisement

Getting timeout error while using smtplib library to send email

Here is my code:

JavaScript

So I am getting this error:

JavaScript

I turned on Less secure app access: enter image description here

I turned off every security steps too: enter image description here

And I also turned off the firewall protection as well.

But Nothing worked.

So please someone help me.

Advertisement

Answer

You need to specify the port. In this case, it’s 587 for TSL.

Somehow it works, but I don’t have profound knowledge to explain why.

I had the same problem, so there is a solution:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement