473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,403 developers and data experts.

Setup HTML Signatures in Apple Mail (Mail.app)

digicrowd
4 Nibble


At first glance, it may not appear that Apple Mail (otherwise known as Mail.app) supports the use of HTML signature emails. However, with a little terminal and Safari magic, you will be sending HTML signatures.

1. Prepare your HTML signature.
Open TextEdit or your favorite HTML editor and create your signature just how you want it to look. Remember to keep it simple as most mail applications are not HTML and CSS compliant. You can also leave off the html, head and body tags. A simple table or CSS div box will do just fine. For the sake of this HOWTO you will save the file as 'htmlsig.html'.
Expand|Select|Wrap|Line Numbers
  1. <div style="display: inline; width: 100%; height: 30px; border-top: 1px dotted #337099; margin: 15px; padding: 10px; font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; font-size: 11px; color: #337099; ">Joe Professional ✭ joeprofessional@example.com ✭ Ph 817-555-1212 ✭ Fx 817-555-1213 ✭ AIM: joepro</div>
2. Verify your HTML signature.
Open Safari and verify your signature is how you want it to look. Use the File -> File Open... menu option or simply drag htmlsig.html to your browser window. Make any tweaks to your HTML code to get the look you want. We will not be embedding any graphics or linking to any graphics in this example as embedded graphics come in the form of attachments and can annoy other users, the same with images in HTML. If you choose to use images in your HTML, but sure to use the full URL ([http://example.com/images/htmlsig.jpg) to a site that is publicly accessible.

It may be difficult to view the top border in Safari with the basic code above. While your fine tuning your code, you may wish to add "<p>&nbsp;</p>" above the <div> tag while viewing your HTML in Safari. Remember to remove it prior to the next step.


3. Save your HTML code as a Web Archive.
In Safari while viewing your HTML signature code, File -> Save As... and choose "Web Archive" format. When you click Save, you will want to use the ".webarchive" suffix when prompted. Save it your Desktop for the time being.
4. Open Mail.app and Make a New Signature
Inside Mail.app, create a new signature for the account you wish this to be for, and name it the name you want your new HTML signature to be called. In the text portion of the signature, type "Blue Frog". It will make it easier to find in next step. Go ahead and close the Preferences window for it to save your new signature. Then quit the Mail.app application.


5. Open Terminal (in Applications -> Utilities)
Inside Terminal, you will want to find the signature file created by Mail.app. Once your terminal window is open and at the command line type:
Expand|Select|Wrap|Line Numbers
  1.  grep -i "Blue Frog" ~/Library/Mail/Signatures/*
You should get a match with some obscure file name which matches (although not identical to this example) C7424254-ABBC-49BB-82BC-BD6F058B2BE3.webarchive.


Now we just need to replace this file with our htmlsig.webarchive file we created in Step 3. We can do this inside the Terminal window.
Expand|Select|Wrap|Line Numbers
  1.  cp ~/Desktop/htmlsig.webarchive ~/Library/Mail/Signatures/C7424254-ABBC-49BB-82BC-BD6F058B2BE3.webarchive 


6. Verify Your new HTML Signature
Launch Mail.app and create a New Message and using the Signature drop down, select your new Signature. It should show up inside your new message just as it did in Safari.


Jul 30 '08 #1
0 37955

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: GAT | last post by:
I have a e-mail function in serverside VB, how would i put html code in the body variable so when email is recieved it looks like html page in the body. right now it just shows up as text in the...
10
by: Ukiharappa | last post by:
Hello All, I am not sure why. It works on Outlook and other mail clients. I have put it as an include file to the .css instead of putting it inline with the html email. Anyody has any ideas...
0
by: me | last post by:
I am using system.web.mail mailmessage and smtpmail.send() to send an email with html content. The problem is that part of a link in the html body has disappeared when it arrives at its...
4
by: Paul | last post by:
Hi still testing the idea of using html files for forms and then integrating this into a net app. I tried a small form with a button but noticed all I could do with the button is to right click and...
2
by: Chris Schinzel | last post by:
Hi, I'm reading text from a html textarea field (standard wrap functionality, no value specified). If I display it via nl2br() (after html form submission), everything's ok. But if I send it via...
0
by: Martin | last post by:
Hi I have a small console app which runs in a loop waiting every 5 mins at some point it needs to send mail, so I have the routine which sends mail. I have Norton Antivirus and only when I end the...
0
by: Zarborg | last post by:
I have a little piece of code that will create an e-mail message from a saved ..htm file and send it. It seems to work well for just about everyone on the receiving end, except for a few people...
3
digicrowd
by: digicrowd | last post by:
http://bytes.com/images/howtos/applemail_sig_icon.jpg You can make your emails fancy in Mail.app by using Rich Text formatting or even included Stationery. But, a simple way to send your own HTML...
2
by: ywang123 | last post by:
Hi There, I am using MIME::Lite::TT::HTML Perl module to send an HTML based email. HTML file contains a header image and footer image and the content within. When I send an email using this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.