Which host? Normally a hosting company has help articles to aid in setting up such things. I suggest try that and get back with us. Sorry I originally missed HOST: smtp.hostinger.com ;
Laravel latest v11-12 SMTP ERROR with HOST
Greetings to LARACASTS community!
I have recently developed a web page with Laravel v11-12, which works correctly in local, but when I upload it to my Host, I am having problems with sending verification emails.
When I have been testing locally, it has been working correctly, and I have been using smtp.gmail.com for local. Now that I have uploaded it to the online host(HOSTINGER),it is not working for me. I have the ssl certificate created as I subscribe to Hostinger web host plan, but there is no way it will send me any mail. I get the following error:
Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed
SSL working fine when i visit the site with https.
I have configured my .env file, where I have put:
HOST: smtp.hostinger.com ; PORT: 587; ENCRYPTION TYPE: TLS; USERNAME AND PASSWORD: Those of my hostinger free email account.
I have been touching also my file located in config/mail.php, putting the same configuration as in the .env file. I have also tried with other ports like 25, 465... among others.
I have checked lot of things in Google,ChatGPT and Deepseek and also every blogs y found in Stack Overflow, but nothing worked.
Any idea what is going on? Am I missing something to configure?
Please or to participate in this conversation.