Recipients in BCC
-
Hi there,
I hope you are doing well.
I have a further question concerning recipients. I am using the following php code to enter recipients in the recipients field – using the shortcode {multiple-mails}:
<?php add_filter( 'forminator_form_get_admin_email_recipients', 'wpmudev_set_multiple_mail_recipients', 10, 5 ); function wpmudev_set_multiple_mail_recipients( $email, $notification, $prepared_data, $module, $entry ) { if( $prepared_data['form_id'] != 8489 ){ return $email; } if( $notification['recipients'] == '{multiple-mails}' ) { $my_post = get_post(8644); $mails = str_replace( '"', '', str_replace( ']', '', str_replace( '[' , '', $my_post->post_content))); $mails = array_filter( explode( ",", $mails ), function($value) { return ( $value !== NULL && $value !== FALSE && $value !=='' ); }); if( $mails ){ $email = $mails; } } return $email; }
This all works perfectly fine. However, I would like the recipients to receive the emails in bcc, so that they cannot see all other recipients. Therefore I added {multiple-mails} in the section advanced > BCC Emails but couldn’t get any results.
I know I am doing something wrong here and would be greatful if you could help me (again) with your great support.
Kind regards
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Recipients in BCC’ is closed to new replies.