nafeeur10
6 months ago
902
9
Laravel

Send email from production server: Laravel

Posted 6 months ago by nafeeur10

I want to sent mail from my server.

I am using mailtrap.io

In it's server it is working fine.

But while I am giving my own server information it is giving error!

Swift_TransportException:

Connection could not be established with host Roundcube.rubyfinance.nl [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]

Webmail name: https://ibb.co/SRQLtFd

.env file:

MAIL_DRIVER=smtp
MAIL_HOST=Roundcube.rubyfinance.nl
MAIL_PORT=2525
MAIL_USERNAME=9a7b2befbb8agd
MAIL_PASSWORD=6e3de66b64e0aa
MAIL_ENCRYPTION=null

I have open an account in mailtrap with [email protected] address of my server.

Please help me.

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