Email Groups

Send notifications to a group of predefined emails with the power of merge tags! Define your email groups below and then use the {emailgroup} merge tag to send to a specific group (e.g. {emailgroup:group1}).

Screenshot: https://gwiz.io/3wvw2uj

Code

Filename: gw-email-groups.php

<?php
/**
 * Gravity Wiz // Gravity Wiz // Email Groups
 * https://gravitywiz.com/
 *
 * Send notifications to a group of predefined emails with the power of merge tags! Define your email groups below and
 * then use the `{emailgroup}` merge tag to send to a specific group (e.g. `{emailgroup:group1}`).
 *
 * Screenshot: https://gwiz.io/3wvw2uj
 */
add_action( 'gform_merge_tag_data', function( $data ) {
	$data['emailgroup'] = array(
		'group1' => 'dave@gwiz.dev,clay@gwiz.dev',
		'group2' => 'dana@smiff.com,layla@smiff.com,summer@smiff.com,abram@smiff.com',
	);
	return $data;
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.