Remove Empty Emails from Notification Email Lists
If you’re passing merge tags as an email list (e.g. {admin_email},{Email:1},{Alternate Email:3}) and one of those emails is empty, Gravity Forms won’t send the email to any of the emails in the list.
This snippet intercepts notifications and processes the to
, cc
and bcc
properties, removing any empty emails.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gw-remove-empty-emails-from-notifications.php