Skip Navigation

[Resolved] How To Send Notification To all recipients in Bcc format

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 10 replies, has 2 voices.

Last updated by Minesh 7 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#512132

I am trying to: Send Notification To all Specific User Role=physician

I visited this URL:None

I expected to see:All notification On Form Sumbit In Bcc format

Instead, I got:All Notification In cc Format

My Function.php code is this

add_filter('cred_notification_recipients', 'send_subscribed_users_func', 10, 4);
function send_subscribed_users_func($recipients, $notification, $form_id, $post_id){
if ( 2306 == $form_id){ //if it is specific CRED form
$args = array(
'meta_key'=> 'role',
'meta_value' => 'physician',
'fields' => array( 'display_name', 'user_email')
);
//get all users with "receive_notification" field
$users = get_users( $args );
//add them as recipients
foreach($users as $user){
$recipients[] = array(
'to' => 'to',
'address' => $user->user_email,
'display_name' => $user->name
);
}
}
return $recipients;
}

#512199

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Could you please pass 'bcc' to 'to' argument of following code. For example:

$recipients[] = array(
'to' => 'bcc',
'address' => $user->user_email,
'display_name' => $user->name
);

Does this helps?

#512650

No That Not Work For me
After Changing 'to' => 'bcc' the notification email is not sending to users

#512654

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Uppps..

I just realized that you have Types subscription. To get support for Toolset Pro plugins, you should have valid subscription and you should create ticket in "Toolset Professional Support" forum.
=> https://toolset.com/forums/forum/support-2/

#512666

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry, but as a supporter, we have predefined boundaries and we need to work within that. As per our support policy, to get help with Toolset Pro plugins, you must create the ticket with "Toolset Professional Support" forum.
=> https://toolset.com/forums/forum/support-2/

I hope this is understandable.

#512669

Not Understandable . Very disappointed
you cannot help a develpor like you?

#512680

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm afraid that I can not help further here and I can not violate rules of our support policy.

#512920

You can Help On My email Id raja@itradicals.com If you Want

#512925

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Dear Kingk,

It's simply not possible and beyond the scope of our support policy.

#512928

Dont Worry I will achieve this myself

#512929

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Great!! Thank you!!

The forum ‘Types Community Support’ is closed to new topics and replies.