1 | initial version |
To turn off Laravel emails with BeautyMail, you can do the following:
Open your Laravel project and go to the config/beautymail.php
file.
Look for the enabled
key and set it to false
. This will disable all BeautyMail emails.
Alternatively, you can disable specific email templates by setting the corresponding key in the templates
array to false
. For example, to disable the passwordReset
template, set templates.passwordReset.enabled
to false
.
Save the changes and test to ensure the emails are no longer being sent.
Note: If you only want to disable email sending in your local environment for testing purposes, you can set the MAIL_DRIVER
value in your .env
file to log
or array
, which will prevent actual email sending and instead logs or stores the emails in memory.