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've just encountered an issue where I have a custom token being used as the Send mail action. Sometimes this token evaluates as empty, but I've noticed that an email is still sent (somehow seems to default to my server email). This patch tries to solve this by checking before drupal_mail is called in the action.
There's probably a nicer way to do this but I needed a quick fix.
Comment | File | Size | Author |
---|---|---|---|
dont-send-empty-recipient-email.patch | 643 bytes | acbramley | |
Comments
Comment #1
TR CreditAttribution: TR commentedBump. Patch still applies.
Comment #2
TR CreditAttribution: TR commentedEvidently, there's not much interest in this feature.
D7 Rules is basically in maintenance-only mode right now, as D7 is nearing its end-of-life. So I'm moving this to the 8.x-3.x branch for consideration.
This patch needs to be re-rolled for D8 and reviewed, and we need some test cases to demonstrate the patch works properly.