I installed Userpoints Contrib on a test site, assigned point levels to roles, and used Retroactive to assign roles based on previous activity.

Before I did that, I made sure both Email modules (Email Notify and Email Single Notify) were disabled on the Modules page.

Nevertheless, emails were sent to all the users who had acquired a new role, which was not what I wanted.

There should be a way to disable sending emails from Userpoints Role (other than by hacking the module).

Thanks!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbahey’s picture

Title: Userpoints Role sends emails even with Email modules disabled » Userpoints Role should have a setting for enabling/disabling sending of emails
Version: 5.x-3.0 » 6.x-1.x-dev
Category: bug » feature

Userpoints role uses Drupal's built in email functionality, and does not depend on any other modules that send emails.

This is why it is unaffected by what else is there installed to send emails.

So, this is now a feature request. A setting to enable/disable email sending by this module. I am not sure if version 6.x of notifications can already do what you want. You can try it on a test site.

drone.ah’s picture

Not a complete solution, but provides a variable that can be set manually to disable sending of emails...

something like the following should disable emails with the patch attached.

INSERT INTO variable VALUES ('userpoints_role_send_email', 'b:0;');