0

My Drupal installation attempts to send emails to a number of users whenever I create or update content but do not publish it. But because sending email is not configured errors are generated.

I don't know what configuration item I could have deliberately or accidentally set to cause that. Is there any setting or module that could cause that?

I don't think I have configured any Rules or Workflow settings to send emails, and it only occurs when the item is unpublished

closed as too broad by Shawn Conn, leymannx, mradcliffe, Free Radical, Scott Joudry Aug 20 '18 at 21:27

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    There is a broad range of possible causes. None of which is a default core behavior, but caused by an installed module/its misconfigured settings, or intended by whoever created the site in the first place. Unfortunately it's impossible for us to guess without actually checking or debugging your code base. I'd personally start checking for any workflow notification modules or implementations of hook_entity_update by searching the code base of all installed modules. – Mario Steinitz Aug 9 '18 at 13:53
  • 1
    PS.: You could also check for occurrences of the ->mail( method. Drupal shouldn't send out too many e-mails. So this might also bring you a little closer to the source of the sent mails. – Mario Steinitz Aug 9 '18 at 14:02
0

The culprit turned to be the Antispam module, which is the client for the Akismet anti-spam system.

Its default setting causes an email to be sent to some administrators whenever a module is updated.

What baffled me was why that setting applied only when an unpublished item was created or updated.

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