Here is my code: So I am getting this error: I turned on Less secure app access: I turned off every security steps too: And I also turned off the firewall protection as well. But Nothing worked. So please someone help me. Answer You need to specify the port. In this case, it’s 587 for TSL. Somehow it works, but