On our messages, any message template that uses [CO_FORMATTED_EMAIL] and [CO_EMAIL] shortcodes is not pulling in the correct email address. I have my personal email as the site admin but the event registrations should use a different one. I have that one set up in the EE settings page but it is still pulling the wp-admin email. Is this a common problem? Do you know of a way to fix that without manually adjusting every single variation/recipient or each of the messages?
The code to parse [CO_EMAIL] (or similar) explicitly uses the organization config for its value, like this:
case '[CO_EMAIL]':
case '[ESPRESSO_ADMIN_EMAIL]':
return EE_Registry::instance()->CFG->organization->get_pretty('email');
break;
“For CO_EMAIL or ESPRESSO_ADMIN_EMAIL pull the value from the Organization Config (CFG)”
That config is in Event Espresso -> General Settings -> Your Organization and it shouldn’t be pulling the value from anywhere else.
However, are you sure something isn’t hooking in and changing the value using wp_mail() after EE has parsed the email?
Have you tested using another shortcode in place of the above (or a hardcoded different admin email) to see if the wrong value is then still used when the message triggers?
When I paste the [CO_EMAIL] shortcode into certain templates it works (such as the Primary Regstrant “Registration Approved” email) but it doesn’t work in the Regstrant “Registration Approved” email. I copy/pasted the exact same shortcode into both messages but they pull different results. Any idea why that would happen?
The support post ‘Event Emails not pullin in correct [CO_FORMATTED_EMAIL] and [CO_EMAIL] shortcode’ 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.