
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 05:58 PM
I have a notification that in the body has a combination of direct text, mail scripts and the email template to generate the final email and whilst it is adding everything to the body of the email that I want, for some reason it is adding a lot of white space between the last mail script entry and the signature that is added via the email template.
Ideas?
So the message HTML field looks something like this:
--------------------------------------------------------------
${mail_script:Set.Subject}
Welcome to our email, there is text here that is manually added
Details are as follows:
Start date: | ${mail_script:Start.Date} |
Start time: | ${mail_script:Start.Time} |
End date: | ${mail_script:End.Date} |
End time: | ${mail_script:End.Time} |
${mail_script:Body}
-----------------------------------------------------------------
Then after that text the signature is added from the mail template, which ultimately is empty, other than adding a "email layout"
That email layout looks like this:
${mail_script:Header}
${notification:body}
${mail_script:signature}
${mail_script:footer}
The email template, email layout and the notification all show no carriage returns or reason why there should be white space, but the final email that gets sent looks like this:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 10:34 PM
Ok I seem to have found the issue, the variable field had the extra carriage returns in it when it is getting submitted, so when I made sure they were removed before submitting, it all was formatted correctly in the notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 06:14 PM
Hi @Moedeb
Please refer to this post and see if this is helpful.
Please mark my answer correct and helpful if this works for you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 08:23 PM
Thanks @Gangadhar Ravi , the concept makes sense, but how to implement it doesn't, for example the last line in the message html field source code is this:
<p><span style="font-family: calibri; font-size: 11pt;">${mail_script:Body} </span></p>
How would I change that to make it not implement the paragraph spacing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 09:46 PM
I think the nbsp after your
${mail_script:Body}
tag is creating the additional spaces. Refer https://mailtrap.io/blog/nbsp/#:~:text=is%20actually%20one%20of,and%20put%20into%20separate%20lines.
Please mark this response as correct and helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 10:30 PM
@Amit Verma what you advised sort of helped.
So when I clicked 'Preview Notification' and the default record came up and displayed, there was no spaces between the last text and the signature.
The issue is that when I choose a record that would actually be used to generate the notification it adds the spaces back and when I look at the source code behind the notification it has the following:
<p><span style="font-family: calibri; font-size: 11pt;"><strong>Heading here:</strong></span></p>
<ul><li><span style="font-family: calibri; font-size: 11pt;"> There is also text here</span></li><li><span style="font-family: calibri; font-size: 11pt;">Some text here to display</span></li></ul>
<p><span style="font-family: calibri; font-size: 11pt;"><strong>Heading here:</strong></span></p>
<ul><li><span style="font-family: calibri; font-size: 11pt;"> We will have text here</span></li></ul>
<p><span style="font-family: calibri; font-size: 11pt;"> </span></p>
<p><span style="font-family: calibri; font-size: 11pt;"> </span></p>
<p><span style="font-family: calibri; font-size: 11pt;"> </span></p>
<p><span style="font-family: calibri; font-size: 11pt;"></span></p><p><font size="3" color="#000000" face="Calibri"><strong>SIGNATURE IS HERE</strong></font><br /><font size="3" color="#000000" face="Calibri">AND HERE</font><br /><font size="3" color="#000000" face="Calibri"><strong>P: </strong>PHONE NUMBER HERE</font><br /><font size="3" color="#000000" face="Calibri"><strong>E: </strong> <a href="mailto:AND HERE" rel="nofollow">AND HERE</a></font></p><img src="LOGO HERE" width="150" height="50</img></span></span></p>
<p><span style=" /><p><font size="4" color="red" face="Arial"><strong></strong></font></p><strong></strong><strong><center>FOOTER HERE</center></strong> </div></body></html>
No idea how to stop it