Signatures in HTML emails

Status
Not open for further replies.

Chris

Member
Outlook version
Email Account
POP3
How do you stop Outlook 2007 / Word from constantly injecting crud into the background code for email signatures/templates please? I have to keep stripping away the code every few months, as the template gets too big! There's about 4 small paragraphs within the actual text, but it regularly gets close to well over 1,000 lines of code!! An example of just *some* of it is below. Any help really appreciated. Chris

<html xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:w="urn:schemas-microsoft-com:eek:ffice:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="HTML 4.01 Specification">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 12">
<meta name=Originator content="Microsoft Word 12">
<link rel=themeData href="TOF%20-%20This%20One_files/themedata.thmx">
<link rel=colorSchemeMapping
href="TOF%20-%20This%20One_files/colorschememapping.xml">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:punctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-GB</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:DoNotShadeFormData/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
 
The code in the signature file is 'normal' but it shouldn't all be included in the message when it's sent. Editing it out of the signature's HTML file can result in a corrupt signature (as can using signatures created in older versions of office. BTDT.) Only the fonts and style definitions sections that are different from the document will be included in the message.
 
Thanks Diane. Is there any way of stopping the unwanted crud being continually and constantly added to the file?
 
No, but it shouldn't be added unless you open the signature and edit it - then everything is written back to the file. The HTML file shouldn't be huge - mine are around 50KB for a few lines of text.
 
What you might do, is to send an email to yourself (with your signature of course) and then see how large the received file is. Also, you can open the received email and see all the "code" within it (including headers).
Maybe it's not so large?
 
Good idea. :) This is a blank message - nothing but my signature in it. The html file for the signature has all of the junk that is in the original post.

Code:
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link="#0563C1" vlink="#954F72">
<div class=WordSection1><p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><b>
<span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:navy'>-- </span></b>
<span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:navy'>
Diane Poremsky </span></b><span style='color:navy'><br></span>
<span style='font-size:10.0pt;font-family:"Arial",sans-serif'><a href="mailto:alias@domain.com">
<span style='color:blue'>alias@domain.com</span></a></span>
<span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:navy'><br>
<b><i>CDOLive LLC - Slipstick.com <br></i></b></span>
<b><i><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060'>
The Microsoft Messaging and Collaboration Application Experts <br></span></i>
</b><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>
<a href="http://www.slipstick.com/" target="_blank">
<span style='color:blue'>http://www.slipstick.com</span></a> -
<a href="http://www.outlook-tips.net/" target="_blank">
<span style='color:blue'>http://www.outlook-tips.net</span></a><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>
<a href="https://forums.slipstick.com/">
<span style='color:blue'>https://forums.slipstick.com</span></a><o:p></o:p></span></p>
<p class=MsoNormal><u><o:p><span style='text-decoration:none'>&nbsp;</span></o:p></u></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K Outlook adds space to rows in HTML email signatures viewed on mobile Using Outlook 1
C Outlook 365 Multiple different Signatures on Shared Mailbox Using Outlook 0
T Outlook roaming signatures Using Outlook 4
D VBA code to select a signature from the signatures list Outlook VBA and Custom Forms 3
A How to create fixed signatures for aliases that process through GMAIL? Outlook VBA and Custom Forms 0
A Multiple signatures Using Outlook 2
L Can signatures synch to Office Portal Using Outlook 1
M Configure outlook 2007 to accept digital signatures Using Outlook 2
R Outlook signatures depending on domain Using Outlook 2
J Signatures that contain recipient's email address Outlook VBA and Custom Forms 7
Mark Foley Outlook multi-spacing Thunderbird signatures when replying Using Outlook 0
Diane Poremsky Image Quality in Signatures Using Outlook 0
C Quick Parts signatures suddenly require more letters Using Outlook 2
R 2 email accounts, only 1 gets signatures added on new email. Using Outlook 1
L Oultlook 2007 Signatures Using Outlook 28
P Changing all email signatures (font, color) at once in outlook 2007 Using Outlook 2
V Plain Text Signatures Using Outlook 3
V Signatures in Outlook 2013 Using Outlook 1
J Outlook 2010 - Stationery with signatures Using Outlook 1
J Managing signatures and disclaimers with digitally signed emails Exchange Server Administration 3
B OL2010 - signatures while forwarding tasks or appointments Using Outlook 2
A Signatures problem Using Outlook 1
S Using Multiple Signatures in Outlook 2010 Using Outlook 9
F Signatures in incoming messages Outlook VBA and Custom Forms 1
N separate signatures for different accounts Outlook VBA and Custom Forms 6
D Where does Outlook store signatures? Outlook VBA and Custom Forms 9
J Outlook 365 html inline images Using Outlook 0
Albert McCann Outlook 2021 Outlook Display of HTML Email from two senders is glitchy Using Outlook 0
J Outlook 2016 Can't display some embedded HTML images in Outlook 2016 Using Outlook 2
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1
S HTML to Plain Text Macro - Help Outlook VBA and Custom Forms 1
M HTML email signature in Outlook Using Outlook 3
B Outlook 2016 Unable to view images or logos on the outlook 2016 emails the same html code works well when i use outlook 2010 Using Outlook 0
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Programmatically force html send and insert clipboard contents into body Outlook VBA and Custom Forms 0
S Change VBA script to send HTML email instead of text Outlook VBA and Custom Forms 3
U HTML Task Alternate Home Page View Control Using Outlook 3
D Custom form with html hyperlink Outlook VBA and Custom Forms 7
D Keep Original html body when forwarding an email Outlook VBA and Custom Forms 7
S Emails Configured As HTML But Sent As Plain Text Using Outlook 13
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
George Simpson "Switch to HTML" in Outlook 2016 notes field Using Outlook 1
H Search and delete part of a link inside HTML body message Outlook VBA and Custom Forms 2
S Outlook 2013 doesn't download html messages Using Outlook 0
A How can I load a HTML template into the WordEditor? Outlook VBA and Custom Forms 3
cabinet guy permanent response in html Using Outlook 1
I Outlook 2013 Appointments not in HTML Using Outlook.com accounts in Outlook 2
B Replies never HTML Using Outlook 2
L Outlook 2002: HTML Emails Will Not Print: Please Help Using Outlook 0

Similar threads

Back
Top