Can i add CC on Appointment Plugin to make my manager in Notice

I am looking for the support for the plugin i bought, i have been Manager and secretary , i want to go all my notification to my secretary and CC to Manager to make also notice the appointment confirmation

  • Vaughan

    Hi @Emmanuel,

    Welcome to the forum, hope you're well.

    You can do this by adding the following to your themes functions.php

    function app_forward_mail( $body, $r, $app_id ) {
    // Enter as many emails as you wish and change Subject as required
    wp_mail( array('mail1@example.com','mail2@example.com' ), 'Subject', $body );
    }
    add_action( 'app_notification_sent', 'app_forward_mail', 10, 3 );
    add_action( 'app_confirmation_sent', 'app_forward_mail', 10, 3 );

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.