GMAIL: Installing E-mail Signatures

To add the updated signature to your e-mail account…

1 – Click on the following link, which should open a separate page with an html signature:
http://rainforesttrust.org/signature2
2 – To make sure you get all of the embedded code…

  • On Mac: Command + A to select all and Command + C to copy
  • On PC: Ctrl + A to select and Ctrl + C to copy

3 – Go to your gmail account, click on the Gear icon and choose SETTINGS from the drop-down list.
4 – Scroll towards the bottom of the page and find the SIGNATURE section.
5 – In the Signature text box, paste the email elements you previously copied (Command + V or Ctrl + V).
6 – Personalize the signature with your information by highlighting and typing in new text.
7 – Scroll to the bottom of the page and SAVE CHANGES.

MS OUTLOOK: Installing E-mail Signatures

To add the updated signature to your e-mail account…

1 – Click on the following link, which should open a separate page with an html signature:
http://rainforesttrust.org/signature2
2 – To make sure you get all of the embedded code…

  • On Mac: Command + A to select all and Command + C to copy
  • On PC: Ctrl + A to select and Ctrl + C to copy

3 – Go to Outlook and open a new email.
4 – Click on the SIGNATURE button at the top of your e-mail window.
5 – In the box that opens, click the NEW button.
6 – In the box that opens, name your new signature and click OK.
7 – In the Edit Signature box, right-click and PASTE your signature (Command + V or Ctrl + V).
8 – Under the Choose Default Signature options, select your new signature from the NEW MESSAGE drop-down window.
9 – If you’d like your signature to appear in your email replies/forwards, choose your new signature in the Replies/forwards drop-down.
10 – Open a new email to make sure your signature appears correctly.

APPLE MAIL (Non-iCloud & iCloud): Installing Email Signatures

Before beginning, please have the following settings for the following programs:

Settings > Apple ID and determine if iCloud is turned on for mail. This either way will be needed as some steps will be skipped. You can turn it off if you are wanting your signature locally on your computer but may not translate if you are sending email via iPhone.

Open a TextEdit.app, found in Applications, start a new document, and open Preferences > Open and Save.

Ensure that the checkmark next to Display HTML files as HTML code instead of formatted text is ticked. Please see Figure 1 for the correct details. Close the Preferences panel, and close the new document.


1 – In Apple Mail, open Preferences > Signatures

2 – Once open, create a new signature in the field ‘All Signatures’

3 – Name the signature something meaningful in the central column. Replace the signature contents on the right with some placeholder text. This text should be recognizable to you as we will use it to help identify the correct signature system file later.

4 – Ensure the Always match my default font checkbox is off

5 – Associate the new placeholder signature with one of your email accounts by dragging its name from the second column to an email account in the first column.

6 – If you want to setup the signature to be the default for an email account with auto-load when starting a new message, select the email account in the first column, and choose the new signature.

7 – Close the Preferences window to save it, then quit Apple Mail

8 – Write an html page inside of TextEdit under a new document. For Rainforest Trust, be sure to grab the raw HTML code which is displayed here:

<html><head></head><body><table style="line-height: 1.1; font-family: Arial, Helvetica, sans-serif; font-size: 70%;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td style="padding: 0 3px 0 0;" valign="top"></td> <td style="padding: 0px 9px 0 5px; border-color: #fc7130;" valign="top"><img style="float: left; max-width: 70px; height: auto;" src="https://www.rainforesttrust.org/wp-content/uploads/RT-vertical-200pxH-1.png"></td> <td style="border-left: 1px solid; color: #000000; font-family: Arial, Helvetica, sans-serif; padding: 0px 0px 0px 10px; border-color: #000000;" valign="top"> <div><span style="font-size: 1.2em; color: #000000;"><strong>Name</strong></span></div> <div><span style="font-size: 1.2em; color: #000000;">Position Title</span></div> <div><span style="font-size: 1.2em; color: #000000;">Rainforest Trust</span></div> <div><span style="color: #000000; font-size: 1.2em;">P.O. Box 841</span></div> <div><span style="font-size: 1.2em; color: #000000;">Warrenton, VA 20188</span></div> <div><span style="color: #fc7130; font-size: 1.2em;"><a href="http://www.RainforestTrust.org" target="_blank" rel="noopener">www.RainforestTrust.org</a></span></div> <div><span style="color: #fc7130; font-size: 1.2em;">Phone Number</span></div> <div><a href="https://www.facebook.com/RainforestTrust/" target="_blank" rel="noopener"><img style="width:23px; height:23px;" src="https://www.rainforesttrust.org/wp-content/uploads/facebook-icon3.png"></a> <a href="https://twitter.com/RainforestTrust" target="_blank" rel="noopener"><img style="width:23px; height:23px;" src="https://www.rainforesttrust.org/wp-content/uploads/twitter-icon3.png"></a> <a href="https://www.instagram.com/rainforesttrust/" target="_blank" rel="noopener"><img style="width:23px; height:23px;" src="https://www.rainforesttrust.org/wp-content/uploads/instagram-icon3.png"></a> <a href="https://donate.rainforesttrust.org/default.aspx?tsid=10079" target="_blank" rel="noopener"><img style="width:71px; height:23px;" src="https://www.rainforesttrust.org/wp-content/uploads/donate-button3-1.png"></a></div></td> </tr> </tbody> </table> </body></html>

9 – We are going to need to locate the folder containing the placeholder signature. Unfortunately, most of you are not going to be able to use Finder to get to these folders.

Apple goes to great lengths to hide these files from people as they usually contain info that is not usually editable by hand. Trying to navigate to them by clicking in Finder will usually lead you to your visible iCloud Drive folder with nowhere else to go. Don’t worry though, this will walk you through an alternative method of getting to the hidden signature files we need to work with.

The files can be in 2 different places depending on whether you are using iCloud Drive or not. You are most likely using iCloud Drive, even if you are not using an iCloud email address. Determine if mail is synced or not. IF SYNCED, go to step 10. If you are not synced, proceed to step 12.

10 – Open Terminal.app, found in Applications > Utilities, and copy/paste the following line into the box and press enter.

ls -laht ~/Library/Mobile\ Documents/com\~apple\~mail/Data/V4/Signatures/

This line tells Terminal to list all the files in this directory along with some other file info, then sort it by date. When you press enter you should see a bunch of lines, each of which corresponds to a file and some of its metadata. Look at the right side column — the file names — and notice the ones that end in .mailsignature. These are the files we are interested in working with. If you get an error, make sure you pasted the line in exactly like shown on one line. If you still get an error, you may not be using iCloud Drive and are following the wrong step.

11 – In the new lines that come up in Terminal after running the command, you should see a .mailsignature file that has the date and time of when you started this tutorial. This is the placeholder file. If you don’t see a file, then you may have done something wrong in a previous step, and should try again.

As mentioned above, we could normally use Finder to view these folders, but Apple has hidden access to them to prevent direct editing, something we wish to do here. If you have only 1 .mailsignature file, then this is most likely the placeholder file you created in the earlier steps. If you have more than one .mailsignature file in there, then you need to find the one you created earlier. Because this list is sorted top-down by the most recently updated, it will most likely be the top one, but you can check by opening them all and seeing their contents.

Terminal.app does not respond to double-clicking the file so how can you open the .mailsignature files? You can copy/paste the following command on the keyboard, all on one line.

open -a TextEdit ~/Library/Mobile\ Documents/com\~apple\~mail/Data/V4/Signatures/*.mailsignature

This line tells Terminal to open all files in that directory that have a filename that ends with .mailsignature, and to open them using the TextEdit application.

12 – (You should only do this step if NOT using iCloud Drive.)

We can use Finder to open the signature file we need. In Finder, select the menu bar item Go > Go to Folder…

A panel will popup that allows you to input the direct path to the signature folder. Copy/paste the following line into the box:

~/Library/Mail/V7/MailData/Signatures/

After clicking Go, a finder window should appear with several files.

Look at the file names and notice the ones that end in .mailsignature. These are the files we are interested in working with. More specifically, we are looking for the placeholder signature file you created earlier. Locate the most recently modified .mailsignature file.

If you have more than one signature file in there, or cannot determine which is the placeholder, you can open each of them to help you find the right file. Simply repeat the following process for all the files.

Right-click on the .mailsignature file in Finder, select Open With, and choose TextEdit.

If TextEdit is not an option, choose Other…, and then choose Applications > TextEdit.

Once you have the file(s) open in TextEdit, move on to step 13

13 – Now that you have the .mailsignature file(s) open in TextEdit, we need to ensure it is the right one. Make sure that the placeholder file we created earlier is open by scanning each of the open TextEdit documents for the placeholder text you entered earlier in the Mail.app Preferences panel.

Because the text I entered earlier was Placeholder text, this is what I am looking for now.

Look for your placeholder text within the file’s HTML code. Here, we know we have the correct file because we can clearly see our placeholder text: Placeholder text

If you cannot find the placeholder, you may still be in “edit” mode on the signature. Try closing the Mail > Preferences Window, quitting Apple Mail and repeating the previous steps.

If you still cannot find the placeholder, you may need to double check that you are/aren’t using iCloud Drive, as detailed in an earlier step.

14 – When you have located the right placeholder .mailsignature file, keep it open and close all other TextEdit windows. Feel free to resize the window to make text editing a bit easier. You will see a few metadata lines on the top of the file and some HTML code below it. Select all that code from the line starting with body, all the way to the end of the file.

15 – Keep the top metadata lines, delete the entire block of placeholder HTML code, as seen in Figure 2

16 – Still keeping the top metadata lines, paste in the raw HTML code from earlier into this document.

17 – Save and close the file, then Quit TextEdit.

18 – If you are using iCloud Drive, skip this step and proceed to the next step. You can determine if you are using iCloud for Apple Mail by checking System Preferences > iCloud. Still unsure? Skip this step — you can redo the steps and include this one if your signature is not working correctly at the end.

Even though you saved this file, Apple Mail may use the original version and overwrite your new signature unless you lock the file. With your text editor now closed and the file saved, open Applications > Terminal.app, paste the following line, and press enter to lock all the .mailsignature files in the folder.

Lock Files:

chflags uchg ~/Library/Mail/V7/MailData/Signatures/*.mailsignature

If you get an Operation not permitted error, you need to open System Preferences > Security & Privacy > Privacy, then select Full Disk Access on the left column, and ensure Terminal is on the list in the right. You may need to tick the checkbox next to it, or use the + button to add it. Then restart Terminal and try again.

If you mess up, you can unlock the files with this command.

Unlock Files:

chflags nouchg ~/Library/Mail/V7/MailData/Signatures/*.mailsignature

19 – Open Apple Mail and go back to Preferences > Signatures. If you have images in your signature, they will not show here in the preview, but they will show in the real signature as long as your coded image source location is valid.

20 – To test that it is working correctly, simply compose a new email using the account you associated this new signature with, and set the signature (right side of screen) to be the one with the name you created earlier. If the images show, and everything looks as it should, you have succeeded!