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.
I'm using the domain module with a certain amount of domains.
I want to use some webforms that are the same for all domains, but a notification should be send to the sites email adress for the active domain.
Forgive me if I'm wrong but I dont think it's possible for the moment...
Thanks
Wim
Comments
Comment #1
quicksketchHi @fivecord, I think you're right that this kind of functionality is not supported. Domain module has it's uses, but it's a very elaborate hack. Webform isn't going to provide built-in support for switching e-mails based on the currently active domain, but perhaps you could manage something if you upgrade to the Webform 4.x version and use tokens for the e-mails that get sent. In 4.x, you can use tokens for e-mail addresses. If you set a different administrator account per domain, then you could reference that e-mail address via a token (I think), making it so the e-mail would be sent based on the site-wide e-mail address. This hinges on a token being provided for site-wide e-mail, but if that exists I think this should be possible.
I'm moving this to a support request since code-wise, we're not likely to implement anything directly into the Webform module.
Comment #2
quicksketchClosing after lack of activity.