Hello. Thank you for contacting the Toolset support.
As I understand - you want to send email notifications to the email IDs which is configured with your email configuration page - correct? If yes:
You can use CRED hook cred_notification_recipients in order to send email where you should fetch the required email IDs and set it with this hook to send email notification.
For example - Add following code to your current theme's functions.php file and adjust the code as required:
/**
* 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;
}
I created a page called "configuration" for her I made a cred where there are personalized fields to enter emails, these emails I would like to receive the notifications of each new element, in total there are 21 forms, one to approve, one to edit and another to create, these 3 for a new element, in total there are 7 elements, therefore, 7 mail fields.
The portal I am creating is for 2 companies, so I take it that they are editable only in these fields and not in the fields of notifications for each cred created
Well - as I understand you have CRED form where you have fields available where user will input the emails?
I see this screenshot: hidden link
I see the email ids with fields - where those fields are added to CRED form?
Could you please share problem URL and whole flow of your request and expected output , few screenshots will be helpful as well - that will help me to understand your issue better and I will be able to guide you in right direction.