Hello, I’d like to send just one email (with all attendee’s individual tickets) to the primary attendee and no other emails to anybody else.
I’m using WP3.8.1 and EE 3.1.36.4.P and EE-Ticketing Version 2.1.p and it’s a new installation. http://guildfordbeerfestival.co.uk/tickets/
I saw your post: https://eventespresso.com/topic/custom-letters-for-additional-attendees/
and I have found wp-content/plugins/event-espresso/incldes/functions/email.php. At line 375,
// Dee 11/03/2014 Only send the special Email template email to the Primary Attendee – not to the additional attendees using && $data->primary_attendee == true
if ($data->event->email_id > 0 && $data->event->send_mail == ‘Y’ && $data->primary_attendee == true ) { //Get the email template if it exists
$email_data = array();
$email_data = espresso_email_message($data->event->email_id);
$conf_mail = $email_data[’email_text’];
$email_subject = $email_data[’email_subject’];
// Dee 11/03/2014 Only send the Custom Event Email email to the Primary Attendee – yes, do it again.
} elseif ($data->event->conf_mail != ” && $data->event->send_mail == ‘Y’ && $data->primary_attendee == true) {//Else get the custom event email
$conf_mail = $data->event->conf_mail;
} else {//Else get the default email from the general settings
// dee The email’s going out to the other ADDITIONAL attendees, and this will bring in the default template.
$conf_mail = $org_options[‘message’];
}
This is how the email (templates) are configured:
Current setup:
General settings > Email settings > Send payment conf emails? No, send reg conf emails before payment is received? No Default Registration Confirmation Email: ‘bla bla bla’ for the ‘additional attendees’ This is the email I don’t want!
Email Manager > 1 x email configured & pulled in through Event > Edit > Email Confirmation: Send a custom confirmation email for this event? Yes. Use a pre-existing email:? Yes (and the preconfigured email is selected).
How can I make it so that the additional attendees get nothing (not even the default email? Thanks so much,
Dee
I have a couple of custom functions written up that you can take a look at.
You can add this code to one of the following:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.
This reply was modified 10 years, 10 months ago by Sidney Harrell.
The support post ‘Only send one email (with all tickets) to Primary Attendee (and no one else)?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.