1

It's possible in Drupal 8 disable all users notifications? New account, forgot password, etc

I'm using one external tool to send these emails and I don't need these notifications.

Thanks

2

One of the easiest ways to make sure no emails are going out is to add

Mailcontrol (https://www.drupal.org/project/mailcontrol) which lets you specify what emails go out.

or

Maillog (https://www.drupal.org/project/maillog) which logs all emails and has an option to not send any emails to users. This will prevent all emails from leaving the system and log them if needed. It was designed to test sites but works well in this use case also.

Your other option is to go through and handle them one by one via code. There is no easy button inside of Drupal that will just turn off the service that I know of.

Sorry to just recommend a module, but given your needs this seems like a pretty obvious choice.

5
  • I'm currently using maillog (my preferred of the two) to prevent emails from going out that I handle via my decoupled React instance. – Shawn Matthews Oct 11 '17 at 16:12
  • Hi Shawn, these modules don't are for Drupal 8. My web is in Drupal 8 – javiregpa Oct 11 '17 at 16:20
  • I'm currently using Maillog in a D8 environment. Its pretty far along for a dev release. Hope this helps @javiregpa. – Shawn Matthews Oct 11 '17 at 16:59
  • Also mailsystem as mentioned by @kstack does the same thing as maillog, but appears to be further through its release cycle. It would probably be a better option if you are looking to log mail as well as prevent it from going out which is what it and maillog do. If you are looking to just turn it off I'd recommend mailcontrol. – Shawn Matthews Oct 11 '17 at 17:06
2

You may want to use mailsystem module. mailsytem

Then goto Admin->Configuration->Mailsystem and select Mail Collector option in both Formatter and Sender .

This collect the mail within the drupal system without actually sending it.

More info: Mail Collector

0

Here is the comprehensive set of solutions for addressing this problem in Drupal 7 and Drupal 8

Managing mail handling for development or testing on a Drupal 7/8 Site

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.