Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html email signature

Status
Not open for further replies.

NIA2

Technical User
Aug 30, 2006
137
AU
Hi everyone,

I've created an html email signature using basic tables and inline css. In order to get it to work, I open up the html file in Word, then copy everything to the clipboard, then paste it into the signature box in Outlook 2007. When I create a new message, the signature automatically appears and I just type in the email above it.

The signature works fine when tested in most email programs in that the signature itself displays correctly and the paragraphs I type above the signature all appear fine also. The problem is that when I test in Windows Live Hotmail, again the signature part is fine but the paragraphs, constituting the body of the email, all have a large amount of space below each paragraph. I don't know why this is happening only in Hotmail and wondered if someone could tell me what might be going on?

The following is the code that I used for the signature. The thing is that this code is only creating/formatting the signature part so I don't know whether I need to add extra code to format the body of the email in order to get it to work consistently across email clients. If so, I don't know how to do this but would really appreciate any help.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html;">
</head>
<body bgcolor="#ffffff" style="margin:0; padding:0;">
<!-- Start Table -->
<table width="558" height="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="padding: 0; margin: 0;">
<tr>
<!-- Start Content -->
<td align="left" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;  color:#000; padding-bottom: 15px; margin: 0;"><p style="padding-bottom: 20px;">Yours sincerely,</p>
  <p style="color: #000; margin: 0; padding: 0; font-weight:bold">Firstname Lastname</p></td>
<!-- End Content -->
      </tr>
      
<tr>
<!-- Start Footer -->
            
<td valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 19px; text-align:left; color:#666666;"><p style="margin-bottom: 5px; padding: 0;"><img src="kcLogo.jpg" alt="logo" width="187" height="35" style="" /></p>
      <p style="margin: 0; padding: 0;">Number Street Suburb State Postcode</p>
      <p style="margin: 0; padding: 0;"><span style="color: #000; font-weight:bold">tel: </span>+61 2 9513 0000 <span style="color: #e5ae51; font-weight:bold">&nbsp;|&nbsp;</span> <span style="color: #000; font-weight:bold">fax:</span> +61 2 9513 0003 </p>
      <p style="margin: 0; padding: 0;"><span style="color: #000; font-weight:bold">email:</span> emailaddress <span style="color: #e5ae51; font-weight:bold">&nbsp;|&nbsp;</span> 
    <a href="[URL unfurl="true"]http://www.webaddress.com"[/URL] style="color: #666666; text-decoration: none;">[URL unfurl="true"]www.webaddress.com</a></p></td>[/URL]
                
<!-- End Footer -->
      </tr>
</table>
</body>
</html>
 
I know this won't be very helpful, but I think you're pretty lucky that all mail clients you use show things somewhat correctly. I think it's time to abandon hopes that every email client out there will render things the way you want it to. Here's a couple of reasons:

1. Some clients will simply refuse to process html. Others will allow certain html, but strip the rest.
2. Word is a terrible program for writing html and the html produced there is terribly bloated and it is a miracle it works anywhere.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
I actually created the xhtml in Dreamweaver. I only opened it up in word so I could copy the contents of the rendered xhtml (if that makes sense) so I could then paste it into Outlook 2007. There's no other way that I know of to insert html email signatures in this version of Outlook other than to copy it directly from Word.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top