Hello , My SMTP client is working fine on localhost but it’s not working in the production environment here on infinity free. I am getting error “Failed to authenticate on SMTP server with username using 3 possible authenticators” even though I have put less secure apps ON in the settings. If I try to change the port number then I get error “expected response code 220 but got an empty response”. Is there something I can do , thanks in advance !
The Less Secure Apps setting is a bit hit or miss in my experience. It may well be that Google blocks access from our networks and not from your home because your home IP is known for your account at Google.
Enabling two factor authentication and using App Specific Passwords works much more reliably. This is also in our instructions for the contactform example we provide.
That’s because you’re probably using the wrong encryption for the port. Port 587 is normally used with tls encryption and port 465 with ssl encryption.
But this probably won’t fix the authentication issue.