
The default interface for Mail signatures allows you to do rich text signatures using the fonts and colors palette. You can even drag an image into the compose signature window and it will be included in every email as an attachment. This is fine for most people, but attachments should be just that, an attachment of a file I am sending, not an image in my signature. So here’s an easy guide on how to do CSS signatures referencing images on an outside server and not as an attachment.
This tutorial covers Apple Mail in Mac OS X Tiger v.10.4
STEP 1: Create a new Mail signature

Launch Mail, located in the Applications folder. From Mail’s top menu, select ‘ Mail > Preferences ‘ and go to the Signature pane. From the Signatures pane, click the plus icon underneath the middle column to create a new Signature. In this example I cleared all my previous signatures for the purpose of clarity but this is not required. Once your signature is created, quit Mail by selecting ‘ Mail > Quit Mail ‘ from the top menu.
Step 2: Create your new signature in a text editor

Using a text editor application, create your signature using html and css.
TextEdit can be used for this, just make sure save as HTML and not rich text. If you want to use my signature style, just download my html sample file and use it as a starting point.
UPDATE: After publishing this, some of you have discovered that GMail will not display any of the CSS unless it’s inline. So here’s a new revised sample file that has all the CSS inline including the image as an img file instead of a a background css attribute. When using this method, GMail will show a link giving the user the option of showing the embedded images.
If you are starting one from scratch check out A List Apart’s article on CSS in emails. In summary, do not use html, head or body tags, use divs instead. Use embedded CSS not extarnal. Do not use classes that start with a dot, but u can do #div .class instead. The same goes to the a: tag.
Step 3: Create Web Archive from signature

Open the signature html file you just created in Safari. You can do this by dragging the actual file icon into the Safari icon in your dock. This should look exactly as you want your signature to look like.

To save this as a web archive, from Safari’s top menu select ‘ File > Save As… ‘ and save the signature as a Web Archive by selecting ‘Web Archive’ on the Format pulldown menu. Saving to the Desktop makes it easy to find for the next step.
Step 4: Replace old signature with the new one

From the finder, navigate to ‘ your home folder > Library > Mail > Signatures ‘. Since I only have one signature in Mail, there’s only one ‘.webarchive’ file in this folder. If you have more than one signature, you need to find the one we created on step 1. Open the web archives in Safari to find the one we created in step one. Copy the file name of the archive file and paste the name in the new archive file on the desktop to rename it. Now drag the new signature archive from the desktop into the Signatures folder. It should prompt you asking if you want to replace the file, which you do.
Step 5: Activating the new signature

Launch Mail and select ‘ Mail > Preferences ‘ from the top menu then go to the Signatures tab. You can rename the signature name here by double clicking it’s name and renaming it. Notice that Mail will not properly render the html in this Signature window but it will render it properly in the compose window.

Now drag the signature to the mail accounts you want it available for.

Then select the account from the left column and select the new signature from the ‘Choose Signature’ pulldown menu. This will make it the default signature for that account.
Step 6: Testing our new CSS signature

To test our new signature, compose a new email and send it to yourself. You should be able to see the signature in the compose window.

Click the send and receive button to receive you new email. You should get a new email with your spanking new fancy signature that contains no image attachments. What a concept!
UPDATE: Guide to CSS Signatures on jail broken iPhone by Jiradett
Hello, I am Melvin Rivera; creator of
Follow me @


Awesome tute!!!
I tried this but the dotted lines don’t stretch across the page, any ideas?
IceCube
Apr 19th, 2008 at 10:53 am
For people who are trying to use this with Outlook 2007, simply use the inline version, change the div to table, and add a tr and a td. Works like a charm, with a few tweaks.
Great resource, Melvin. You saved me hours of anguish. With gratitude, DH
Have to tell ya, it’s 2009 and this is still the best signature tutorial out there. I love it and use a modified version that has my pic, google maps to my address and linked to my Web site. So sweet.
Hello,
I did every single thing you said, but it is not working as it should be.
everything works until “step 5″.
A little question mark shows up at the place where my signature should be standing in my e-mail…
Do you have any idea or do you know what’s wrong..?
Greetz
Great tutorial I hadn’t even thought to check what format the signatures are stored as. Simple and works a treat.
hi milind – thanks for doing this! i’m having a problem (non-coder here). after everything is done and saved, when i open it in safari, it comes out as the code itself, and not the html image. when i paste the code in the html snippet of iweb, it works perfectly. you can see it here: http://web.mac.com/rjstarr/unity/sig.html any ideas? thank you – rj starr
never mind – i figured out what i was doing wrong. thanks again for this awesome guide. peace & love & consciousness
Thanks! This tutorial is so great!
I used most of the tutorial but created the html and clickable image through Photoshop, after that I added text (name and number) in Dreamweaver.
I had a minor problem when my (a bit larger) jpeg was nog showing up in my mail signature, there was the very-well-know blue box with question mark.
My idea was that my apple and therefore the computers of people I might send mail could not find my jpeg, therefore I looked up how I could make a hyperlink to that jpeg on idisk.
(As I am a non-coder) I struggled myself through Dreamweaver again and added the hyperlink to the jpeg on my idisk.
That link looks like this: http://homepage.mac.com/UserName/.Pictures/filename.jpg
greetz,
Sure we can! greetz from Utrecht, Holland
This was so helpful. I’m really glad my husband made me learn html so I could just read your blog and make myself an awesome signature within minutes. So cool – thanks!
Awesome. This was perfect. Thanks for the post.
Aaron