Recent searches
No recent searches
Blank space added when an email is sent from triggers.
Answered
Posted Oct 13, 2021
Hello everyone,
I'm currently setting up a few triggers to send customized email to our customers. To do so, I'm using HTML and I'm able to have the desired result, except that I'm facing a little bug. When a customer receives the triggered mail, it contains a huge blank space.
This huge blank is of course not intended, nor present into my HTML code. When opening my code into a classic web browser, everything looks and works fine. When investigating the HTML code received into the mail, it looks like Zendesk automatically adds a lot of <br> tags.
This issue does not appears when the <table> tag is not used. Is there a fix or any workaround into Zendesk configuration ?
Thanks !
1
7
7 comments
Carl McDowell
Hi Florian,
I think we will need to have a look at the configuration of your email template and your triggers along with some example tickets to get to the bottom of this.
Since this will be account specific information I have made a ticket for you to look further into this.
Kind Regards,
0
Florian PRESTIFILIPPO
Hello Carl,
I finally managed to find what was causing the blank spaces. The editor I used to write the template was adding "invisible" line breaks for some unknow reasons. I was able to remove them using an html code fixer.
Everything is working as expected now, but thanks for your concern !
Have a nice day
0
Carl McDowell
Hi Florian PRESTIFILIPPO,
Thanks for getting back to me and letting me know you found the issue and the solution, glad you were able to get it all working.
Have an awesome day
0
Olivia Improta
Hi Florian PRESTIFILIPPO
I'm having the same issue with big blank spaces in the HTML email we're sending via triggers. When I inspect the page I can see that lots of <br> are added. Can you share the steps you followed to solve the issue? Thanks and have a nice day!
0
Ginger Collison
This is happening to me but I am just adding the HTML table code straight into the trigger in Zendesk, no editor being used. Anyone know how to get rid of the additional breaks?
0
Olivia Improta
Ginger Collison Solution: you need to add the HTML content to the trigger in a minified version. This way, there won't have gaps between the content. I used this website https://www.willpeavy.com/tools/minifier/ to minigy my HTML and add it to the Zendesk trigger and it works fine!
1
Henrik Eijsink
Olivia Improta Thank you very much for the workaround to this. Spent such a long time trying to figure out this bug.
Incredible that Zendesk has not fixed it yet.
0