maseed's avatar

Godaddy smtp in Laravel issue

I have a professional email at Godaddy and using that in Laravel for sending emails but it is not working and I am getting an error.

local.ERROR: Connection could not be established with host "ssl://smtpout.secureserver.net:465": stream_socket_client(): Unable to connect to ssl://smtpout.secureserver.net:465

SMTP Settings look like this

MAIL_MAILER=smtp MAIL_HOST=smtpout.secureserver.net MAIL_PORT=465 MAIL_USERNAME="[email protected]" MAIL_PASSWORD="MyPassword" MAIL_ENCRYPTION=ssl MAIL_FROM_ADDRESS="[email protected]" MAIL_FROM_NAME="${APP_NAME}"

0 likes
10 replies
Sinnbeck's avatar

Give tls a shot instead

MAIL_PORT=587
MAIL_ENCRYPTION=tls
Sinnbeck's avatar

Or ask your provider if they perhaps need to open something to allow you to send from your server

maseed's avatar

@Sinnbeck Thanks for your reply checked it with this already but not working.

Sinnbeck's avatar

@maseed How about

MAIL_PORT=465
MAIL_ENCRYPTION=tls

What error does this give you?

maseed's avatar

@Sinnbeck Sometimes If I check it with some of these suggested values I get an error Expecting 220 but got empty response

Sinnbeck's avatar

@maseed Check with your provider if they allow you to send from your site. Personally I would use something like mailpace, mailgun or similar

maseed's avatar

@Sinnbeck OK Thanks again. Lemme ask them. Our pockets don't allow us to glance these other options available.

maseed's avatar

@sinnbeck This is a link to a discussion where you posted a GitHub link. My error is exactly like that. I don' t know where I will put those values? I think I should post the exact error here. Let me get you that. Wait for it. Thanks!

maseed's avatar

[2022-08-27 08:05:13] local.ERROR: Connection could not be established with host "ssl://smtpout.secureserver.net:465": stream_socket_client(): Unable to connect to ssl://smtpout.secureserver.net:465 (Connection timed out) {"exception":"[object] (Symfony\Component\Mailer\Exception\TransportException(code: 0): Connection could not be established with host "ssl://smtpout.secureserver.net:465": stream_socket_client(): Unable to connect to ssl://smtpout.secureserver.net:465 (Connection timed out) at /var/www/thisismysite.com/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154) [stacktrace] #0 [internal function]: Symfony\Component\Mailer\Transport\Smtp\Stream\SocketStream->Symfony\Component\Mailer\Transport\Smtp\Stream\{closure}()

Please or to participate in this conversation.