in post form, e-mail notifications section:
selecting option
Send notification to a specific email address:
put value:
bcc: info@legkie-noty.ru
and nothing happen.
if remove bcc: , then e-mails are sent
Hi there,
Please use the custom code below:
/**
* Customise CRED notification recipients by adding a BCC
* to the the notification "Content submitted"
*/
add_filter('cred_notification_recipients', 'modify_recipients', 10, 4);
function modify_recipients($recipients, $notification, $form_id, $post_id) {
// Check notification name matches target notification
if ( isset($notification['name']) && 'Content submitted' == $notification['name'] ) {
// Add a BCC to log@emailaddress.com
$recipients[] = array(
'to' => 'bcc',
'address' => 'log@emailaddress.com',
'name' => '',
'lastname' => ''
);
}
return $recipients;
}
Change 'log@emailaddress.com' with the email that you want.
Here is how to add a custom code in Toolset:
https://toolset.com/documentation/programmer-reference/adding-custom-code/using-toolset-to-add-custom-code/
Please make sure you have a complete backup of your website before doing so.
Thanks.