Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ruptha's avatar
Level 1

Laravel Web App SMPT not working in GoDaddy hosting

I created a web app using Laravel that sends reminder emails for medication refills to the admin email at [email protected], which is set up in Google Workspace. The app is hosted on GoDaddy, but it's not sending emails to [email protected] email. It works fine from localhost and other servers. I reached out to GoDaddy support, and they recommended using the relay mentioned below.

   smtp host= localhost
   port= 25
   smpt auth= false
   smtp ssl= false/none

As per their statement, I have employed the relay shown below.

 MAIL_MAILER=smtp
 MAIL_HOST=localhost
 MAIL_PORT=25
 [email protected]
 MAIL_PASSWORD=**********
 MAIL_ENCRYPTION=TLS
 MAIL_FROM_ADDRESS="[email protected]"
 MAIL_FROM_NAME="${APP_NAME}"

mail.php 'mailers' => [

    'smtp' => [
        'transport' => 'smtp',
        'url' => env('MAIL_URL'),
        'host' => env('MAIL_HOST', '127.0.0.1'),
        'port' => env('MAIL_PORT', 587),
        'encryption' => env('MAIL_ENCRYPTION', 'tls'),
        'username' => env('MAIL_USERNAME'),
        'password' => env('MAIL_PASSWORD'),
        'timeout' => null,
       // 'auth_mode'=>null,
        //'verify_peer'       => false, 
        //'auto_tls'    => false,
        'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'localhost'), PHP_URL_HOST)),
    ],
0 likes
0 replies

Please or to participate in this conversation.