Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To turn off Laravel emails with BeautyMail, you can do the following:

  1. Open your Laravel project and go to the config/beautymail.php file.

  2. Look for the enabled key and set it to false. This will disable all BeautyMail emails.

  3. 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.

  4. 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.