use ssl instead of tls. And for the host, use the hostgator server name, instead of your domain.com. It works for me.
Jun 28, 2017
4
Level 1
How to configure email sending over SMTP on Hostgator shared hosting?
Hi,
I'm trying to send emails using SMTP on an installation of Laravel on Hostgator's shared hosting, but I'm getting this error:
(1/1) Swift_TransportException Connection could not be established with host smtp.mailtrap.io [Connection refused #111]
Looks like it's something related to my config/mail.php file... Is there any configuration example that I could use? BTW, the email hosting is provided by Hostgator.
Thanks in advance.
Please or to participate in this conversation.