Event ticket email to admin in Cc

Home Forums Ticket Products Event Tickets Plus Event ticket email to admin in Cc

  • This topic has 4 replies, 3 voices, and was last updated 9 years, 9 months ago by Manuela Hernandez Perez.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1132950

    Hi,
    how can I configure that the admin always receives a copy of the ticket email that is sent to the rsvp recipient? I need that every ticket is sent to the admin’s email address in Cc.
    Thank you in advance!
    Best regards,
    Manuela

    #1133251
    George
    Participant

    Hey Manuela!

    This should indeed be possible, but only with a bit of custom coding. You can do that by adding code like the following to your theme’s functions.php file:


    function tribe_add_admin_email_to_rsvp_email_recipient( $to ) {

    if ( ! is_string( $to ) ) {
    return $to;
    }

    $combined_to = array(
    $to,
    '[email protected]'
    );

    return $combined_to;
    }

    add_filter( 'tribe_rsvp_email_recipient', 'tribe_add_admin_email_to_rsvp_email_recipient' );

    You would, of course, replace '[email protected]' with your real admin email.

    I hope this helps!
    George

    #1133311

    Works perfectly, thank you 🙂

    #1133563
    George
    Participant

    Excellent! 😀

    Cheers,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event ticket email to admin in Cc’ is closed to new replies.