Back in 2007, I wrote a tutorial on how to create your own customized OS X Mail stationery when Leopard was first released. To this day, it’s still one of the most popular articles on this site. I decided it was about time that I took a look at it again to make sure nothing had changed with all the updates to Leopard, and the release of Snow Leopard.
This tutorial is fairly simple, and you’re only limitations are your graphics skills. Of course, if you have knowledge of HTML, you can do a lot more with your customization. For the sake of this tutorial though, I’ll keep it simple.
What you’ll need
You’ll need just a few things to create your own custom Mail stationery. First, you’ll need a graphics editor; I suggest Adobe Photoshop, but Pixelmator or any other app that allows you to save specific size files as JPG and PNG will do. Next, you’ll need a text editor that can save files as plain text; Apple’s TextEdit will do, but you can use any one you wish.
Navigate to the root level of your Macintosh hard drive and go to:
Inside this folder, you’ll see five more folders named the way you see them in Mail when you click the Stationery button in the upper right corner of new emails. They are Birthday, Announcements, Photos, Stationery, and Sentiments.
For the sake of keeping it easy in this tutorial, I chose to base my customized email off of one of Apple’s built-in templates called Sand Dollar Stationery.
Go ahead and open the
Stationery/Contents/Resources folder. You will see 8 files and some folders (how many folders depends on how many languages you have installed on your system). Option-drag the Sand Dollar.mailstationery file to your desktop. We want to work on a copy of the file, not the original.
Control+Click (right-click) on the Sand Dollar.mailstationery file on your desktop and select Show Package Contents.
Another Finder window will open. Go ahead an open the
Content/Resources folders until you see the basic files for the Stationery template. Here you will see seven files and more language folders.
Open the content.html file just to get an idea of the HTML structure of the final template file. You’ll notice that near the top of the HTML code, the Title tag of the stationery (Sand Dollar) appears. Change that to whatever you wish to name your file. You’ll want to use only characters and spaces (for whatever reason, when I used a hyphen or underscore it doesn’t work). Make sure you save the file as plain text, and with the .html extension.
The Sand Dollar stationery is comprised of only a few graphics files:
If you look at the Sand Dollar stationery template in the Mail application, you’ll have an idea of how it all comes together. Now you just need to decide on what you want your stationery design to look like. Once you’ve decided on your design, simply open each of the four .jpg files and customize them.
NOTE: The width of the body of the message background is important. You’ll want the borders (if you choose to have them) to line up on the top, letter background and bottom JPG files. (see screenshot below)
Obviously the file named top.jpg is the “masthead” of the template where you can place a logo, photo or whatever you wish. As you can see in the image above, I created a completely new top.jpg file to replace the Sand Dollar and paper background.
Keep the background simple unless you really know what you’re doing. The background of the stationery actually resides in two different files. The bg_pattern.jpg file is what Mail tiles in the background of your email to fill the width and height of the entire Mail window, but the bg_letter.jpg overlays that, so the background in that file needs to mesh well with the background pattern. Be sure to save the .jpg files as the exact same file names.
Step 6 (optional)
Open the content.html file (if it’s not still open) to make sure your images have updated in the HTML. If you haven’t physically moved any of the files or changed the names, the HTML document should be perfect. At this point, you can also customize the “template text” that appears when you select the stationery in Mail. Go ahead and add a signature at the bottom with your Web address or whatever you wish. For my purposes, I chose to just leave the text alone since I don’t send out emails with boilerplate text in them anyway. Save and close the content.html file, making sure to save the file as plain text with the .html extension.
We need to create a stationery thumbnail image, so drag the content.html file to your Web browser and take a screenshot of just the stationery itself (Command + Shift + 4 then drag an area to capture the image. I then opened the original thumbnail.png file and pasted the screenshot into it and resized it to fit. Don’t forget to save the thumbnail image as a .png, not a .jpg file.
We’re just about finished. Open the Description.plist file in TextEdit. Make sure TextEdit is set to save files as plain-text, not rich-text. About 12 lines down you’ll see a “string” with the name of the template, in this case it’s Sand Dollar.mailstationery. Change it to whatever you named your stationery file earlier in step 4, keeping the .mailstationery part. Save and close the file.
Now go into the English.lproj folder (or whatever language you happen to have your Mac display in) and open the DisplayName.strings file in TextEdit. Change the name at the end of the text again from Sand Dollar inside the quotes to the same name as in the previous step. Save and close the file. Again, make sure to save this as a plain text file.
Now close the folders and go back to your Desktop and rename the package file Sand Dollar.mailstationery to whatever you wish, keeping the extension. In my case, it was Graphic Mac.mailstationery.
Drag your new stationery package file from your desktop back into the original Stationery folder where you got it:
Library/Application Support/Apple/Mail/Stationery/Apple/ Contents/Resources/Stationery/Contents/Resources/
Close all the folders and launch Mail. Create a new email, then click the Stationery button in the upper right corner of the window to display the list of available templates. Under the Stationery item in the source list on the left, you should see your new template icon (provided you did create that thumbnail.png image. To make it easy, I dragged my new stationery template to the Favorites item at the top of the list. As you can see by the final product below, it works perfectly.
Obviously, the more you know about HTML, the more complicated you can make your customized Mail stationery templates. That’s all there is to it.
The original Sand Dollar stationery template I based this tutorial on happens to have a 540 pixel wide text area, which I found out by looking at the HTML code.
You CAN USE IMAGES in this particular email template, just drag your image from the Desktop into the body of the email. Obviously you’ll want to keep your image at 540 pixels wide, otherwise it’s going to make a mess of your carefully crafted email.
You CAN NOT USE ATTACHMENTS when you use Mail stationery other than images, so don’t bother trying.
All email applications are not created equal. For example, Gmail should display the email perfectly, but it will append the background image as an attachment at the bottom of the email. I’m not sure why it does it, but there doesn’t appear to be a way around it. Outlook on Windows sometimes makes a complete mess of emails sent with Mail’s stationery. Again, I don’t know why or how to fix it. Keep your expectations low and you won’t be so disappointed.