Have you succeed sending email with another smtp?
Jan 12, 2021
31
Level 4
mail sending error using gmail smtp using laravel
while using port 465 then getting this error
Expected response code 220 but got an empty response
while using 587
Expected response code 250 but got code "530", with message "530-5.7.0 Authentication Required. Learn more at 530 5.7.0 https://support.google.com/mail/?p=WantAuthError i25sm4486677pgb.33 - gsmtp
but when i was using mailtrap it was working fine.
Level 24
just make this more clear.... don't change any settings in mail.php, the default setting is
'mailers' => [
'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,
'auth_mode' => null,
],
change .env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your-gmail-password
MAIL_ENCRYPTION=tls
make sure enabled IMAP under POP/IMAP settings in your gmail account, try send email
1 like
Please or to participate in this conversation.