Using Exchange 2010 Transport Rule to create Signature
I am using SBS 2011. In exchange 2010 I have a transport rule to create a HTML signature that appends to all emails. It works fine with one exception. When I send an email from OWA the signature looks perfect. When I send an email from Outlook it adds line spaces between the signature lines. I am not a web designer and have little experience with html. Here is the code I use. Any help is appreciated. </style> <div> <p <span style="font-size:17.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></i></b></p> <p <span style="font-size:18.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D "><b><i>%%Displayname%%,&nbsp; %%Title%%</span></i></b></p> <p <span style="font-size:14.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Desk: %%Office%% &nbsp;&nbsp;&nbsp; Mobile: %%MobileNumber%%</span></p> <a href="http://www.mydomain.com"><img src="http://www.mydomain.com/sigfiles/logo.jpg" alt="Company" align="left" alt="Company" border="0"></a> </div>
June 8th, 2012 11:08am

I've no idea if this will help (especially since you say it works okay in OWA), but <p is obviously wrong. it should be <p> Also, those &quot;s in the style attribute values look wrong. You don't need them, and I can't imagine why they are escaped in that way. Try removing them. Also, I'm not sure why there is an extra </style> at the top, but I'll assume that there is extra code outside the segment you posted. Having said that, I'm not convinced that those two things would cause extra lines to appear.Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2012 11:27am

Thanks for the help. I made the changes you suggested. It did not correct the line spacing issue. Here is a screen shot of the Outlook vs OWA signature.
June 8th, 2012 11:46am

hi, I don't think it is a exchange problem, because your owa is work fine. If it is a server side problem. Owa will not work. And i have done a test for you. If i send a message with the signature by using outlook, it is show correctly in owa as well. So it seems that only outlook using the code have problem. I use another html code to do a test and it works fine. So I'd better to believe that it is caused by the code. How do you get the code? Can you ask them to modify it. hope can help you thanks,CastinLu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 3:24am

Have a look (in Outlook) at the HTML source for the two messages to see if they are different. The line spacing may be caused by extra <p> or <br> tags, but is you don't see anything like that, it may also be controlled by different CSS styling.Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
June 11th, 2012 9:14am

I don't know much about HTMl. Here is my current code. Any help is appreciated. <div> <p> <span style="line-height : 1%;margin-top: 0; margin-bottom: 0;font-size:17.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></i></b></p> <p> <span style="line-height : 1%;margin-top: 0; margin-bottom: 0;font-size:18.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D "><b><i>%%Displayname%%,&nbsp; %%Title%%</span></i></b></p> <p> <span style="line-height : 1%;margin-top: 0; margin-bottom: 0;font-size:14.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Desk: %%Office%% </span></p> <a href="http://www.domain.com"><img src="http://www.domain.com/sigfiles/logo.jpg" alt="Company" align="left" alt="Company" border="0"></a> </div>
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 9:29am

Open one of the messages (that you pasted images of in your earlier post) in Outlook. Right-click the message body, and select View Source. It should open in Notepad. Please copy/paste it all and post it here. Then do the same with the other message, so that we can look for any differences.Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
June 11th, 2012 11:17am

Ok here is the Outlook source. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> <style> <!-- @font-face {font-family:"Cambria Math"} @font-face {font-family:Calibri} p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif"} a:link, span.MsoHyperlink {color:blue; text-decoration:underline} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline} span.EmailStyle17 {font-family:"Calibri","sans-serif"; color:windowtext} .MsoChpDefault {font-family:"Calibri","sans-serif"} @page WordSection1 {margin:1.0in 1.0in 1.0in 1.0in} div.WordSection1 {} --> </style> </head> <body lang="EN-US" link="blue" vlink="purple"> <div> <p>&nbsp;</p> </div> <div> <p style="font-size:17.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</p> <p style="font-size:18.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D"><b><i>Support,&nbsp; </i></b></p> <p style="font-size:14.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Desk: 555-555-5555 &nbsp;&nbsp;&nbsp; Mobile: 555-555-5555</p> <a href="http://www.Domain.com"><img src="http://www.Domain.com/sigfiles/logo.jpg" alt="Company" align="left" alt="Company" border="0"></a> </div> </body> </html> Here is the OWA source. <html dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style id="owaParaStyle"> <!-- p {margin- margin-bottom:0px} --> </style> </head> <body> <div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt"></div> <div> <p style="font-size:17.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</p> <p style="font-size:18.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D"><b><i>Support,&nbsp; </i></b></p> <p style="font-size:14.0px; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Desk: 555-555-5555 &nbsp;&nbsp;&nbsp; Mobile: 555-555-5555</p> <a href="http://www.domain.com"><img src="http://www.domain.com/sigfiles/logo.jpg" alt="Companyt" align="left" alt="Comopany" border="0"></a> </div> </body> </html>
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 11:24am

Hmm. Well, I've no idea where those differences come from. I suspect there is something in the Outlook options that is adding a little extra formatting, but I'm not sure where to find it right now. It might be an idea to use <br> (line breaks) instead of actual paragraphs, since paragraphs are more susceptible to CSS formatting such as you are seeing being added by the Outlook version. See if you can change the code to just this: <div> <span style="font-size:18.0px; font-family:Calibri,sans-serif; color:#1F497D"> <b><i>%%Displayname%%, %%Title%%</i> </span> <br/> <span style="font-size:14.0px; font-family:Calibri,sans-serif; color:#1F497D"> Desk: %%Office%% </span> <br/> <a href="http://www.domain.com"> <img src="http://www.domain.com/sigfiles/logo.jpg" alt="Company" align="left" border="0"> </a> </div> Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
June 11th, 2012 11:45am

Ah, you fixed it while I was typing :-)Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 11:47am

Thank you Lee, and everyone else who responded.
June 11th, 2012 11:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics