Posted: 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? |
|
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. |
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? |
|
|
Hi Josh, what I did was to remove the EE Filter: Now the buttons work correctly. 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. 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. |
|
It also adds paragraphs. <p></p> This is the code in the message template: This is the code that arrives: |
I’m not so sure that’s EE stuff, for example I cannot find 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. |
|
|
I created my own message templates (template pack). That is why you cannot find the 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.