Use this hook to send a separate email for each recipient in your email action's To box.
Usage
add_filter('frm_send_separate_emails', 'frm_send_separate_emails', 10, 2);
Parameters
- $is_separate (boolean)
- $args (array)
- 'action' => object
- 'entry' => object
- 'form' => object
Examples
Send separate emails for a specific action
Submitted by srwells — 7 years ago
Use the code below to send a separate email notification for each recipient in a given Email Action. Replace 4933 with your Action ID.
add_filter('frm_send_separate_emails', 'frm_send_separate_emails', 10, 2); function frm_send_separate_emails( $is_separate, $args ) { if ( in_array( $args['action']->ID, array( 4933, 4924 ) ) ) { $is_separate = true; } return $is_separate; }
If you would like to add your own example, click here.
Change Log
Last changed in version 2.02.13
Have something to add?
Click here to provide feedback on this page.