• Resolved cwillans

    (@cwillans)


    Hello, I’m using the Event Tickets plugin, in addition to The Events Calendar in order to have users RSVP to an event. However, I would like an email to be sent to us (the admins) whenever someone signs up for the event.

    In the Ticket -> Settings -> Emails config, I see the ‘RSVP Email’ only gets sent to attendees, and the only one Admins get are ‘Completed Order’ which doesn’t apply since these are free RSVP’s. Is there a way to also include the admins in the ‘RSVP Email’ that gets sent? Or some other way to do it?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @cwillans,

    Thanks for getting in touch with us.

    You can CC your admin email with this code snippet:

    function customtribe_et_rsvp_replyto_email( $headers ) { 
    	$reply_to = '[email protected]'; // Change accordingly
    	
    	$headers['Reply-To'] = $reply_to;
    	
    	return $headers;
    } 
    
    add_filter( 'tec_tickets_emails_dispatcher_headers', 'customtribe_et_rsvp_replyto_email', 15 ,1 );

    Replace [email protected] with yours.

    Reference

    https://theeventscalendar.com/knowledgebase/best-practices-for-implementing-custom-code-snippets/

    I hope that helps.

    Thread Starter cwillans

    (@cwillans)

    Appreciate the reply, this is close to what I want, but it just adds the [email protected] to the ‘Reply To’ section of the email. I was hoping to add the email as an additional recipient of the original email. So when someone registers for the event, our admin receives an email too.

    Hello @cwillans,

    You’re right. That’s for Reply-To. Use this one:

    <?php
    /**
      * BCC custom email on all Event Tickets' RSVP ticket emails within the new "Tickets Emails" feature
      */
    add_filter( 'tec_tickets_emails_dispatcher_headers', 'my_add_bcc_email_headers' );
    function my_add_bcc_email_headers( $headers ) {
    	// define who gets bcc'd
    	$bcc = "Custom Name <[email protected]>, My Other Name <[email protected]>";
    	$headers[] = sprintf( 'Bcc: %s', $bcc );
      
    	return $headers;
    }

    I hope that helps.

    Thread Starter cwillans

    (@cwillans)

    @frankremmy That didn’t seem to work for some reason. I never received an email after changing out the example emails. Any idea why?

    Plugin Support Darian

    (@d0153)

    @cwillans

    Please try replacing

    $headers[] = sprintf( 'Bcc: %s', $bcc );

    with this

    $headers['Bcc] = $bcc;

    I hope this helps. Let me know if you have further concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Event Tickets – Send RSVP Email to Admins’ is closed to new replies.