0

There is an email that goes to users that seems to be produced by a module (on a role change) that is confusing to a specific client's users. They would like me to disable that specific email, but I have not been able to figure out where to do that.

I've gone through the users and roles and configuration for the module. I've done a search on the text in the site files (the snippets of text that do not have field-specific data) and come up empty.

So, generically, I'm wondering about how to disable emails from being sent if there doesn't seem to be a setting to do so in the dashboard. I would be happy to add more information here that is about the module specifically, but it seems that it would be helpful to have some generic pointers of where to look, in case the situation comes up in other modules, as well.

2
  • Search the module code for usages of 'drupal_mail'.
    – mona lisa
    Commented Sep 15, 2015 at 23:41
  • That did come up with one instance in a related module, but it was not relevant to the specific situation. Commented Sep 16, 2015 at 0:48

1 Answer 1

1

If you have the Rules module enabled, go and check the rules

/admin/config/workflow/rules

It's very likely that there is a rule that is sending the emails. So just disable it.

3
  • To the benefit of the OP understanding: Doesn't the Rules module use drupal_mail() to send emails?
    – avpaderno
    Commented Sep 16, 2015 at 5:57
  • I'm sure it does, but it's better to disable it through rules, if its using rules, than having to hack the module (^_^)
    – No Sssweat
    Commented Sep 16, 2015 at 6:10
  • Revisiting Rules. I had checked rules before and there were no Rules listed. That didn't make sense because the related modules have rules. On further investigation, I found that Rules UI was not enabled, but Rules were! Commented Sep 17, 2015 at 21:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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