BCC Reservation/Ticket Confirmation to E-Mail-Adress
-
Hi all,
my costomer wants to receive an e-mail for each reservation oder ticket purchased on the site vie Events Calendar (free) and Event Tickets (free).
Is it really not a built-in function? I can’t believe that…
I tried this BCC-to-Admin-Snippet for RSVP-bookings, but it doesn’t work:
- BCC site admin email on all Event Tickets’ RSVP ticket emails so they get a copy of it too
* - From https://gist.github.com/cliffordp/4f06f95dbff364242cf54a3b5271b182
* - Reference: https://developer.www.ads-software.com/reference/functions/wp_mail/#using-headers-to-set-from-cc-and-bcc-parameters
*
*/
function cliff_et_rsvp_bcc_admin_ticket() {
// get site admin’s email
$to = ‘[email protected]’; // set Headers to Event Tickets’ default
$headers = array( ‘Content-type: text/html’ ); // add BCC email if it’s a valid email address
if ( is_email( $bcc ) ) {
$headers[] = sprintf( ‘Bcc: %s’, $bcc );
} return $headers;
}
add_filter( ‘tribe_rsvp_email_headers’, ‘cliff_et_rsvp_bcc_admin_ticket’ );
Any advice? Will it work if she purchases the pro version (which?)?
The page I need help with: [log in to see the link]
- BCC site admin email on all Event Tickets’ RSVP ticket emails so they get a copy of it too
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘BCC Reservation/Ticket Confirmation to E-Mail-Adress’ is closed to new replies.