Support

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


ARAGATO

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?


ARAGATO

December 13, 2018 at 1:09 pm

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

This is the template code:
http://uploads.aragato-server.net/screenshots/20181213dbe1b4eea3.png

This is how it looks when send the same template through better notifications for instance.
http://uploads.aragato-server.net/screenshots/201812137956b92c17.png

And this is how it looks sent through EE:
http://uploads.aragato-server.net/screenshots/2018121339dee81ece.png

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


Josh

  • Support Staff

December 13, 2018 at 2:55 pm

Hi,

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

https://kinsta.com/knowledgebase/disable-emojis-wordpress/


ARAGATO

December 14, 2018 at 4:28 am

Hi Josh,

what I did was to remove the EE Filter:
FHEE__EE_Email_messenger__apply_CSSInliner

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
http://uploads.aragato-server.net/screenshots/20181214d24c72cad0.png

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.
http://uploads.aragato-server.net/screenshots/20181214a17421efaa.png
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.


ARAGATO

December 14, 2018 at 5:16 am

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

This is the code in the message template:
http://uploads.aragato-server.net/screenshots/20181214a12b51b839.png

This is the code that arrives:
http://uploads.aragato-server.net/screenshots/20181214291b0d917c.png


Josh

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


ARAGATO

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 5 months, 1 week ago ago

Topic Tags

Notifications

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