events emails

Home Forums Ticket Products Event Tickets Plus events emails

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1233333
    iman
    Participant

    Hi,
    When an user buy a ticket then events email that includes qr code and his tickets information,sends for him.
    I want to receive users event email in my favorite admin email for more Supervision.
    How do i do?
    Thanks a lot.

    #1234136
    Hunter
    Moderator

    Hello and welcome 🙂

    Try adding the following snippet to your theme’s functions.php file but and make sure to update the example address with the admin email address you’d like the ticket sent to:

    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' );

    Let me know how it works out!

    #1234320
    iman
    Participant

    Hi ,Thanks for your reply.
    I use this function and add my favorite email address on it,but i don’t receive any emails in my favorite email.
    What is problem?
    Please help me.

    #1234764
    Hunter
    Moderator

    Hi again,

    Email delivery can often be tricky, so I like to use Easy WP SMTP to ensure everything gets delivered properly.

    Please give it a shot and let me know how it works out. Cheers!

    #1241689
    iman
    Participant

    Hi,
    When i use easy wp smtp plugin,these errors has taken:
    in ssl mode:
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    in tls mode:
    The following From address failed: [email protected] : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connectedSMTP server error: Called MAIL FROM without being connected
    How do i do?

    #1242199
    iman
    Participant

    I use wp-mail-smtp plugin,and i dont have an error.
    But that function that you offer me,is not working,and i don’t receive any email ticket in my favorite email address.
    shoud i change in functions.php?

    #1242606
    Hunter
    Moderator

    Welcome back,

    Try replacing the first snippet I provided above with the following snippet and let me know how it works out. It will go at the bottom of your theme’s functions.php file.

    /**
    * 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.wordpress.org/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
    $bcc = sanitize_email( get_option( 'admin_email' ) );

    // 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' );

    #1242921
    iman
    Participant

    Thanks for your reply, i test this function and it had no effect on my site.
    Please check it again.
    Thanks a lot.

    #1243511
    Hunter
    Moderator

    Hello,

    I tested it myself and it doesn’t appear to be working for me either. Hang tight while I investigate for another route. Thanks and if you don’t hear from me within 24 hours, please check in by responding and I should have an update by then.

    Cheers!

    #1254585
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘events emails’ is closed to new replies.