Spacing in outbound emails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2015 02:51 AM
Morning all.
I am trying to configure an outbound client facing emails. I have been given the HTML script which is table based so all the fields are in line. When applied I get a load of spacing between sections that I cant work out. When I view the source code of the inbound email there DIV tags added where the spaces are. If this is the cause of the issue how do I remove them as they dont exist in my code.( below) Any thoughts?
<table width="700" class="tg" style="width: 500; height: 285px; float: left;" border="0" cellspacing="0" cellpadding="0">
<tr><th class="tg-e3zv" valign="top" style="text-align: center;" colspan="5"><span style="font-family: arial,helvetica,sans-serif;"><img title="" align="top" style="border: 0px solid black; vspace: 0px; hspace: 0px; align: top;" alt="Fixnetix Ltd - Change Starting" src="/Fixnetix_ChangeManagement_Starting_Banner.pngx" border="0" vspace="0" hspace="0" /></span></th></tr>
<td class="tg-031e" colspan="5" vlaign="top">
<p><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><span style="font-size: 10pt;">Dear Fixnetix Customer,<br data-mce-bogus="1" /></span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">This email is to notify you that change ${number} is now being implemented and work started at
${work_start}. A further email will be sent on completion of the change.</span><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"> </span>
<table>
<tbody>
<tr>
<td rowspan="2"><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"> </span></td>
<td><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Change No.:</span></strong></span></td>
<td><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">
${number}</span></td>
<td><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Envoronment:</span></strong></span></td>
<td><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">
Environment: ${u_environment}</span></td>
</tr>
<tr>
<td><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Parent Ticket:
</span></strong></span></td>
<td><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">${u_related_request} ${u_related_problem}
${u_related_incident}</span></td>
<td><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Change Window Start:</span></strong></span></td>
<td><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">
${u_change_window_start}</span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Change Window End:</span></strong></span></td>
<td><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">
${u_change_window_end}</span></td>
</tr>
<tr>
<td colspan="4"><span style="color: #ffffff; font-family: arial,helvetica,sans-serif; font-size: 8pt;">_</span></td>
</tr>
<tr>
<td colspan="2"><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Short Description:</span></strong></span></td>
<td colspan="2"><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">
${short_description}</span></td>
</tr>
<tr>
<td colspan="4"><span style="color: #333333; font-size: 8pt;"><strong><span style="font-family: arial,helvetica,sans-serif;">Change Description:</span></strong></span></td>
</tr>
<tr>
<td colspan="4"><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">
Description: ${description}</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"> </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">If you require further information please contact us as follows, quoting the change number above </span><br /><br /><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"> Email: toc@fixnetix.com</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Phone: +44 (0)208 003 8999</span></p>
<p> </p>
<p> </p>
<p></p>
<p></p>
</p>
</p>
</td>
</tr>
<tr>
<td class="tg-031e" colspan="5"><img width="701" height="52" title="" align="left" style="border: 0px solid black; align: left;" alt="Footer Image" src="/Fixnetix_Notification_Email_Footer.pngx" border="0" vspace="0" hspace="-1" /></td>
</tr>
<tr>
<td rowspan="14" colspan="5">
<p><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">The contents of this email are confidential and may contain privileged information. This e-mail and any attachments are intended solely for the addressee. If you are not the intended recipient, please erase it, its contents, all attachments and any copies from your computer and network. You may not disclose, forward, copy or take any action in reliance of this e-mail or attachments and you may not open any attachments. If you have received this message in error, please contact us on +44 (0)203 008 8990, in order for us to forward it to the correct person. Thank you.</span></p>
</td>
</tr>
</tbody>
</table>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2015 08:04 AM
Hey Pete,
Thanks, that has cured the spacing issues however the font is changing in certain sections of the email however looking at the script there are no lines that should cause that. I have checked the source code and again I am getting loads of div tags just before the point the font changes. Ill see what the response is on Hi.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2015 08:09 AM
Steve,
I'm glad its somewhat better. I always find its worth running the code through
Dirty Markup · Tidy up your HTML, CSS, and JavaScript code
and then confirming it looks right on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2015 08:20 AM
I have book marked post sites and will use them frequently!
When I run my script through the real time HTML editor it is fine, no spacing, no font changes. Its defiantly ServiceNow adding the div tags