I am using Gmail SMTP to send mail from my website where i am using PhpMailer library for same.
I am able to send mails from my localhost when run locally but same when hosted to infinityfree , its not working & there is no error or exception occuring
Can someone please look into this, why its happening like this or do i need to do any additional setting in this regard
Port 25 is blocked on our servers (as that would allow you to send email directly to other mail providers without using a proper sending server). Please use different ports and enable encryption. You can use port 587 with tls encryption or port 465 with ssl encryption.
I assume localhost is whitlisted in google reCAPTCHA for easy testing
but for another environment it is necessary to add domains (hosts) as whitelisted
in the configuration of the reCAPTCHA API