Laravel error when sending custom email address using smtp server Laravel error when sending custom email address using smtp server laravel laravel

Laravel error when sending custom email address using smtp server


I just solved it by making a small changes in my .env and mail.php file like this

MAIL_ENCRYPTION=""
'encryption' => env('MAIL_ENCRYPTION', ''),

Tell me what are the drawbacks in this unsecured/alternative answer of mine. I want feedbacks. Thanks a lot.


You're using SSL (MAIL_ENCRYPTION=ssl) so you need to change MAIL_PORT=465 in .env file.


You might have crossed check every bit of line you have. The issue is with mailtrap.io it self. If your configuration is actually like this below.

MAIL_MAILER=smtpMAIL_HOST=smtp.mailtrap.ioMAIL_PORT=2525MAIL_USERNAME=31466861b7bXXXMAIL_PASSWORD=fe2b6503618XXXMAIL_ENCRYPTION=null

I tested with two separate framework to proof this error. check the SMTP credentials try resetting the credentials.