nanadjei2
577
14
Laravel

Testing mailtrap.io on a server

Posted 1 year ago by nanadjei2

I have just push a project to development and I want to test the mail with mailtrap.io API. The configuration works on my local machine but not on the shared host server.

I get this error... production.ERROR: Connection could not be established with host smtp.mailtrap.io [Connection refused #111] {"exception":"[object] (Swift_TransportException(code: 0): Connection could not be established with host smtp.mailtrap.io

This is my .env

     MAIL_DRIVER=smtp
     MAIL_HOST=smtp.mailtrap.io
     MAIL_PORT=2525
     MAIL_USERNAME=**************
     MAIL_PASSWORD=***************
     MAIL_ENCRYPTION=tls

Can any help me.

Please sign in or create an account to participate in this conversation.