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.
Hi,
I would like to make a webform sending an e-Mail only when filled out by an anonymus user. If a authenticated user fillit out or edit it, it should only be stored in database. Is there a hook or something for that?
Thank you!
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedSorry, but I just don't know. I don't use the D6 codebase and that branch receives only critical bug fixes at this point. I'd look in webform's api file.
In the D7 branch, you can change alter the e-mail. It may be possible to change the e-mail address to something invalid. I think webform tests the address after its altered. You may get log entries -- not sure.
Alternatively, you can send the e-mail yourself, using something like rules or custom code.