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.
By sachinbal on
Hi,
I am building a community site. One of the requirements of this site is that the anonymous users should be able to send a mail to all authenticated users who belong to a particular city. I was trying to use the webform option but in webform, I had to again create the list of cities (although a field for cities exist in my registration form) and then manually add the email id of each member to the component list. Is there a better way or module for doing this?
Please advise.
Regards
Sachin
Comments
2 ways I would probably
2 ways I would probably consider:
1: use hook_form_alter() and insert the appropriate emails programmatically.
2: tell your client out of it, because it's a stupid idea, as allowing that to anonymous users will probably lead to abuse.
:-)
I like cookies!
Thanks,
Thanks,
I will try option 1
Option 2 would be a bit difficult :-)
Regards
Sachin