How to debug mail sending in Laravel
To troubleshoot email sending errors in Laravel you can:
1. Set up:
MAIL_DRIVER=log
in the mail settings in the ENV file.
E-mails wouldn't be sent, but will be written to the logs folder -where you can check email parameters.
2. To display configuration data for email sending:
dd(config('mail'));
Comments