Guide for Mac users

How to install a professional HTML signature in Apple Mail, step by step

Apple Mail supports HTML signatures, but it doesn't work like Gmail. Simply copying and pasting the HTML into the signature settings is not enough. To ensure a professional signature with layout, links, buttons and images displays correctly, you need to edit the internal signature file that Mail creates in macOS.

Before you begin

This guide is intended for Mac users who want to insert a customised HTML signature into the Apple Mail. The process is straightforward, but take your time because we will be editing an internal application file.

You don't need advanced skills. You'll just create a temporary signature, locate the corresponding file and replace its contents with your final HTML signature.

Why Apple Mail won't accept HTML directly

In Gmail you can copy a visual signature from the browser and paste it straight into settings. Apple Mail, on the other hand, manages signatures via internal files with the extension .mailsignature.

If you paste HTML code directly into Mail's signature editor, it will usually appear as plain text or lose much of its design. That's why the correct method is to create an empty signature first and then edit the file Apple Mail generated.

What you need to create your HTML signature in Apple Mail

  • A Mac with the Mail app set up.
  • A ready-made HTML signature.
  • The signature image uploaded to a public URL, for example on WordPress.
  • A text editor like Visual Studio Code, Sublime Text or TextEdit in plain-text mode.

Important recommendation

The signature image must be hosted online. Don't use an image stored locally on your computer, as recipients may not see it correctly. Ideally upload it to WordPress and use the image's direct URL.

Step 1: create a new signature in Apple Mail

Open the Mail app on your Mac and go to:

Mail → Preferences → Signatures

Select the email account where you want to install the signature and click the + button to create a new signature.

You can name it, for example:

Professional HTML signature

Inside the signature content write a temporary text that's easy to find. For example:

FIRMA_TEMPORAL
Crear una firma nueva en Apple Mail
Example screenshot: creating a temporary signature in Apple Mail.

Quit Mail completely

After creating the temporary signature, quit Apple Mail completely. Closing the window is not enough. Use:

Mail → Quit Mail

You can also use the shortcut Command + Q.

Step 2: locate Apple Mail's signatures folder

Now you need to find the internal file that Apple Mail created for that signature.

Open Finder and press:

Command + Shift + G

The 'Go to Folder' window will open Go to the folder. Paste this path:

~/Library/Mail/
Abrir la carpeta Library Mail en macOS
Example screenshot: accessing Mail's internal folder from Finder.

Inside you'll see one or more folders named like:

  • V9
  • V10
  • V11
  • V12

Enter the folder with the highest number, as it usually corresponds to the current Mail version on your Mac.

Then open:

MailData → Signatures

The full path is usually similar to this:

~/Library/Mail/V12/MailData/Signatures/

Step 3: find the correct signature file

Inside the Signatures folder you'll see several files with the extension:

.mailsignature

If you have several signatures created, there will be multiple files. To know which one corresponds to the signature you just created, open the files with a text editor and search for the temporary text you wrote earlier:

FIRMA_TEMPORAL

The file containing that text is the one you must edit.

Archivo mailsignature localizado en macOS
Example screenshot: .mailsignature file opened in a text editor.

Step 4: edit the .mailsignature file

When you open the file you'll see a structure similar to this:

Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8
Message-Id: <...>
Mime-Version: 1.0

<body>
FIRMA_TEMPORAL
</body>

Do not delete the file headers

It's very important to keep the top of the file. Do not remove the lines for Content-Transfer-Encoding, Content-Type, Message-Id or Mime-Version.

What you must do is delete only the HTML content that appears below those headers and replace it with your HTML signature.

Step 5: paste your HTML signature

Now paste your signature's HTML beneath the headers. A basic example structure would be:

<body>
  <table cellpadding="0" cellspacing="0" border="0" style="font-family: Arial, Helvetica, sans-serif;">
    <tr>
      <td>
        <strong>Your name</strong><br>
        Professional service<br>
        <a href="mailto:[email protected]">[email protected]</a>
      </td>
    </tr>
  </table>
</body>

In a professional signature you can include:

  • Name and job title.
  • Photo or logo.
  • Service buttons.
  • Links to the website.
  • Email link.
  • Telephone number.
  • Contact button.
  • Legal text or confidentiality notice.
Firma HTML pegada dentro del archivo mailsignature
Example screenshot: replacing the temporary content with the final HTML signature.

Step 6: save the file and lock it

Once you've pasted the HTML signature, save the file.

Then, in Finder, right-click the .mailsignature file and choose:

Get Info

Check the box:

Locked
Bloquear archivo de firma de Apple Mail
Example screenshot: option to lock the .mailsignature file.

Why you should lock the file

Apple Mail can overwrite signatures automatically. Locking the file reduces the risk of Mail removing the customised HTML and reverting the signature to plain format.

Step 7: open Apple Mail and test the signature

Open Apple Mail again and create a new message.

In the signature selector, choose the signature you created. If everything is correct, you should see the signature with its layout, links, colours, image and buttons.

Firma HTML funcionando en Apple Mail
Example screenshot: HTML signature loaded correctly in a new Apple Mail message.

Common problems when installing an HTML signature in Apple Mail

The signature appears as HTML code

This usually happens when HTML is pasted directly into Apple Mail's visual signature editor. The solution is to edit the .mailsignature file as explained in this guide.

The signature image doesn't appear

Check that the image is uploaded to a public URL and that you can open it in the browser. If the image is on your computer, other users may not be able to see it.

Apple Mail erases the design

Make sure you've quit Mail before editing the file and have locked the .mailsignature file after saving it.

Rounded corners or some styles don't look the same

Email clients don't interpret HTML the same way as a browser. That's why it's best to use tables, inline styles and simple layouts. Apple Mail usually respects HTML fairly well, but some visual details may vary in other email clients.

The signature looks too large

It's recommended that an email signature is visually appealing but not excessive. If it includes many blocks, buttons or long legal texts, it can be useful to create a compact version for everyday use.

Tips for creating a professional HTML signature

  • Use a lightweight image, preferably in JPG or WebP format.
  • Don't use complicated external fonts.
  • Avoid external CSS. Inline styles are better.
  • Use tables instead of complex layouts with flexbox or grid.
  • Include useful links, not too many.
  • Check the signature by sending yourself a test email.
  • Check how it looks on mobile.

Conclusion

Installing an HTML signature in Apple Mail requires some extra steps, but the result is worth it if you want to project a professional image in every email you send.

The key is to first create a temporary signature, locate the .mailsignature, replace the content with your final HTML and lock the file to prevent Apple Mail from overwriting it.

Frequently asked questions about HTML signatures in Apple Mail

Can I paste an HTML signature directly into Apple Mail?

It's not recommended. Apple Mail doesn't interpret HTML pasted directly into the signature editor well. The most reliable method is to edit the .mailsignature.

Where are Apple Mail signatures in macOS?

They're usually located in the path ~/Library/Mail/, in the folder for the most recent version, inside MailData/Signatures/.

Can I use images in my Apple Mail signature?

Yes, but ideally they should be hosted at a public URL. This reduces display problems in other email clients.

Why is my signature's design lost?

This can happen if Apple Mail overwrites the signature file or if the HTML uses styles not supported by email clients. That's why it's worth locking the file and using HTML with tables and inline styles.

Does this method work on all Macs?

It works on modern versions of macOS, although the Mail folder number may change. For example, it can be V10, V11 or V12,

Daniel Gontán, especialista electrónico Apple

Content reviewed by specialist

About Daniel Gontán

Daniel Gontán is an Apple electronics specialist who works on repair and diagnosis of Mac, MacBook, iMac, Mac mini and other Apple devices. In his guides he shares technical criteria based on real workshop issues, component compatibility and common faults.

The aim of this content is to help users better understand their device's issue, avoid hasty decisions and assess when it's worthwhile to repair, diagnose or recover data.

  • Apple electronic repair specialist.
  • Diagnosis of MacBook, iMac, Mac mini, Mac Studio and Mac Pro.
  • Experience with motherboards, charging, liquid damage, displays, data and complex faults.
1