Ask Your Question
2

How to turn off Laravel emails with BeautyMail?

asked 2021-11-14 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-10 13:00:00 +0000

bukephalos gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-14 11:00:00 +0000

Seen: 18 times

Last updated: Jun 10 '21