Home › Forums › Ticket Products › Event Tickets Plus › events emails
- This topic has 10 replies, 4 voices, and was last updated 9 years, 2 months ago by
iman.
-
AuthorPosts
-
February 11, 2017 at 8:02 am #1233333
iman
ParticipantHi,
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.February 13, 2017 at 3:14 pm #1234136Hunter
ModeratorHello 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!
February 14, 2017 at 12:25 am #1234320iman
ParticipantHi ,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.February 14, 2017 at 11:52 am #1234764Hunter
ModeratorHi 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!
February 19, 2017 at 7:41 am #1241689iman
ParticipantHi,
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?February 20, 2017 at 7:55 am #1242199iman
ParticipantI 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?February 20, 2017 at 6:35 pm #1242606Hunter
ModeratorWelcome 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' );February 21, 2017 at 7:08 am #1242921iman
ParticipantThanks for your reply, i test this function and it had no effect on my site.
Please check it again.
Thanks a lot.February 21, 2017 at 10:14 pm #1243511Hunter
ModeratorHello,
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!
March 15, 2017 at 9:35 am #1254585Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘events emails’ is closed to new replies.
