Support

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


tchabitat

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!


Tony

  • 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]':
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?

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


tchabitat

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?


Tony

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

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!