Home Forums Event Espresso Premium Message getting filter by EE before being sent

Message getting filter by EE before being sent

Posted: December 13, 2018 at 12:55 pm


December 13, 2018 at 12:55 pm

To what degree are getting message templates post processed by EE before being sent out? Some unicode html codes for example are getting converted to actual images and some other shinagings that I do not want.

Is there a way to just replace the message templates shortcodes and do no other changes?


December 13, 2018 at 1:09 pm

For example this unicode character ↪ is getting converted to an image.

This is the template code:

This is how it looks when send the same template through better notifications for instance.

And this is how it looks sent through EE:

Besides the code being converted, the formating is totally off and the rest of the email is bugged to.


  • Support Staff

December 13, 2018 at 2:55 pm


That might be WordPress making that conversion. In this case, the filters that get applied to wp_mail, specifically. Can you try this solution?


December 14, 2018 at 4:28 am

Hi Josh,

what I did was to remove the EE Filter:

Now the buttons work correctly.
But still the html gets modified and something adds extra stuff in there.

This is the code in the template, when looking at the template in message->default message templates

There is a table row with text ‘Registration cancelled’ and after that the next table row is where the background is defined with background-color: #dddddd;

When I test send an email the code was modified and extra rows were added.
Here you can see that between the two table rows registration cancelled and the background table row there is an additional tabler row with a br tag added.

Why? It must be some sort of EE stuff, because as I said, when sending the exact same template through Better notification for instance, the template is sent 100% the same as the raw and is not getting modified.


December 14, 2018 at 5:16 am

It also adds paragraphs. <p></p>

This is the code in the message template:

This is the code that arrives:


  • Support Staff

December 14, 2018 at 7:12 am

I’m not so sure that’s EE stuff, for example I cannot find background-color: #dddddd; anywhere within the message templates or css files.

The Better notifications plugin you mentioned has an option to send emails with HTML formatting or as Plain Text. Is yours set to send as Plain Text? If so, that would explain the difference because when it’s set to HTML formatting the Better notifications plugin runs the email content through wpautop, just like EE4 does.


December 14, 2018 at 3:32 pm

I created my own message templates (template pack). That is why you cannot find the background-color: #dddddd;.
Regarding the p issue, I could not find the cause. Tried all day. I now just hide all the generated ps via css.

I have set better notifications to HTML. I also had wpautop disabled. Still EE added the <p> in between </table> and .

Well, for now it works with the css workaround. But it is still strange to why those p are getting added.

The support post ‘Message getting filter by EE before being sent’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  ARAGATO 1 year, 9 months ago ago

Topic Tags


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