Level 102
You have a wrong port and you set the encryption type to a number
MAIL_PORT=465 //check with your provider if this is the right port
MAIL_ENCRYPTION=tls
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Connection could not be established with host "http://premium5.web-hosting.com/:993": stream_socket_client()
on shared hosting I tried sending and email it's now working but on localhost it's working perfectly with mailtrap.oi am using namecheap email
MAIL_MAILER=smtp
MAIL_HOST=http://premium5.web-hosting.com/
MAIL_PORT=993
MAIL_USERNAME=noreply@trib***
MAIL_PASSWORD=*****
MAIL_ENCRYPTION=465
[email protected]
MAIL_FROM_NAME="${APP_NAME}"
You have a wrong port and you set the encryption type to a number
MAIL_PORT=465 //check with your provider if this is the right port
MAIL_ENCRYPTION=tls
Please or to participate in this conversation.