Skip Navigation

[Closed] mails are not being sent

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 3 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2533037
Снимок экрана 2023-01-12 в 17.54.02.png

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

#2534813

Christopher Amirian
Supporter

Languages: English (English )

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.

The topic ‘[Closed] mails are not being sent’ is closed to new replies.