Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created October 24, 2023 15:07
Show Gist options
  • Save Sharifur/6d483b5bf265fee3827a2bb56379d361 to your computer and use it in GitHub Desktop.
Save Sharifur/6d483b5bf265fee3827a2bb56379d361 to your computer and use it in GitHub Desktop.
smtp mail showing send success but not getting the mail, issue in hostgator solved by this code.
//config/mail.php
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN',url('/')),
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment