Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We use Facebook authentication on our site which sets the email field, but users would like to be notified at a different email address. How can I set Notify to use a different email address than the one on the user?
Comments
Comment #1
gisleThere is no direct provision for this in Notify.
You can do this by adding a custom module to allow people to add a secondary email address to their profile, and use
hook_mail_alter()
to change the destination of notifications.Please note that such a hook may open up Notify to be abused to send unsolicited notifications to that address. This means that it there should be some extra email authentication framework in place for this to be secure, but fixing that would be up to whoever implements this custom module.
Comment #2
gisleOP hasn't commented in a week. Closing.