Home Forums Event Espresso Premium Event Emails not pullin in correct [CO_FORMATTED_EMAIL] and [CO_EMAIL] shortcode

Event Emails not pullin in correct [CO_FORMATTED_EMAIL] and [CO_EMAIL] shortcode

Posted: November 20, 2020 at 5:57 am


November 20, 2020 at 5:57 am

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?

Thanks for the help!


  • Support Staff

November 20, 2020 at 8:20 am

Hi there,

The code to parse [CO_EMAIL] (or similar) explicitly uses the organization config for its value, like this:

case '[CO_EMAIL]':
    return EE_Registry::instance()->CFG->organization->get_pretty('email');

“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?

Is this on a single site or multi-site install?


November 24, 2020 at 9:56 am

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?


  • Support Staff

November 25, 2020 at 2:42 am

Is this on a single site or multi-site install?

Which section are you adding the shortcode to?

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.

Event Espresso