A clean HTML email signature includes your name, role, contact info, optional logo, and links to your website or social. Good signatures take 5 minutes to set up; bad signatures display as broken images, garbled text, or worst of all, render as raw HTML in the recipient’s inbox. This guide explains how to build a signature that works across major mail clients and how to set it up in each.
The realistic constraints
Email rendering varies wildly across clients. Things that “just work” on a web page often break in email:
- CSS support is limited. Modern CSS (flexbox, grid, custom properties) doesn’t work reliably.
- External stylesheets ignored. Styles must be inline (
style="..."on each element). - JavaScript stripped entirely. Never trust JS in email.
- Background images unreliable. Outlook ignores most.
- Web fonts not supported. Use system fonts only.
- Tables for layout, not divs. Decades-old but still the rule.
The mental model: email rendering is like 2003 web rendering. Plan accordingly.
A signature template that works
<table cellpadding="0" cellspacing="0" style="font-family: Arial, sans-serif; font-size: 13px; color: #333;">
<tr>
<td style="padding-right: 15px; border-right: 2px solid #0057ff;">
<img src="https://yourdomain.com/signature/logo.png" alt="Logo" width="80" height="80" style="display:block;">
</td>
<td style="padding-left: 15px; vertical-align: top;">
<div style="font-size: 16px; font-weight: bold; color: #0057ff;">Your Name</div>
<div style="color: #666;">Your Role ยท Company Name</div>
<div style="margin-top: 8px;">
<a href="mailto:you@yourdomain.com" style="color: #333; text-decoration: none;">you@yourdomain.com</a><br>
<a href="https://yourdomain.com" style="color: #333; text-decoration: none;">yourdomain.com</a>
</div>
</td>
</tr>
</table>
Working features:
- Two-column layout via table (universal support).
- Hosted image for the logo (not embedded โ embedded images often get stripped).
- Inline CSS on every element.
- System font (Arial) โ renders everywhere.
- Brand color accent via border.
Customize names, colors, links, and image URL. Host the image at a stable URL on your site โ if it disappears, recipients see broken image icons.
Setting it up in Roundcube webmail
- Log in at
yourdomain.com/webmail. - Top right โ Settings (gear icon) โ Identities.
- Click your address.
- Signature field.
- Tick the HTML signature checkbox.
- Paste your HTML code (raw, between the quotes).
- Save.
Compose a new email โ signature should appear automatically. If raw HTML appears as text instead of rendered, the HTML signature checkbox wasn’t ticked.
Setting it up in Outlook (desktop)
Outlook doesn’t accept raw HTML pasted into the signature editor. Workaround:
- Save your HTML to a file
signature.htmon your computer. - Open it in your browser to verify rendering.
- Outlook: File โ Options โ Mail โ Signatures.
- Create a new signature, give it a name.
- In Outlook, open the signature file location: type
%appdata%MicrosoftSignaturesin Windows Explorer โ find the .htm file Outlook created for your signature. - Replace its contents with your HTML.
- Restart Outlook.
Alternative for simpler signatures: in Outlook’s signature editor, manually format text + insert images. Less control but no file-system fiddling.
Setting it up in Apple Mail
- Mail โ Preferences โ Signatures.
- Click + to create a new signature for your account.
- In the editor, paste your formatted signature (not raw HTML โ Apple Mail wants rendered content).
For full HTML control:
- Save signature HTML to a file.
- Open in Safari, select all, copy.
- Paste into Apple Mail’s signature editor (Apple Mail interprets it as rendered HTML).
Apple Mail caches signatures in ~/Library/Mail/V*/MailData/Signatures/. You can edit the .mailsignature files directly for maximum control.
Setting it up in Gmail (web)
- Gear icon โ See all settings.
- General tab โ scroll to Signature.
- Create new signature.
- Paste rendered signature (not raw HTML) into the editor.
To paste from raw HTML:
- Save HTML to a file, open in browser.
- Select all in browser, copy.
- Paste into Gmail’s signature editor.
Gmail’s editor accepts formatted content but tweaks some styles. Test thoroughly.
Setting it up on iPhone / Apple Mail iOS
- Settings โ Mail โ Signature.
- Either “All Accounts” (single signature) or “Per Account” (different per email).
iOS mail allows plain text only in this interface. For HTML signatures on iOS, the workflow:
- Send yourself an email from desktop with your HTML signature rendered.
- On iPhone, open that email, long-press the signature area, Select All, Copy.
- Settings โ Mail โ Signature โ paste.
- iOS preserves the formatting.
The “Type Style” / “Reformat” suggestion may strip formatting โ say no.
Common signature pitfalls
Image not displaying
- URL not publicly accessible. Test in incognito browser โ does the image load?
- HTTPS mismatch. If your signature uses
http://URL but recipient’s email is HTTPS, browser security may block. Usehttps://always. - Image hosted on a service that blocks hotlinking. Host on your own domain.
- File too large. Keep under 200 KB; logos optimized to under 50 KB ideally.
Signature shows as attachment in Gmail
Inline images sometimes get attached separately on Outlook โ Gmail. Workaround: smaller images (under 10 KB) usually inline reliably; larger ones convert to attachments. Or host images externally and reference by URL (no attachment).
Signature looks fine for you, terrible at recipients
Test with multiple test recipients:
- Gmail account.
- Outlook account.
- Apple Mail account.
- iPhone Mail.
Send yourself a test email and verify all renders. Tools like Litmus or Email on Acid show rendering across dozens of clients automatically.
Signature renders as raw HTML
Your account is set to send plain-text emails, not HTML. Switch to HTML mode in client settings.
Quoted reply text gets mangled by signature
Keep signatures short โ bigger signatures with complex layouts interact badly with reply threads. The classic “5 lines max” advice is sound.
Signature best practices
- Keep under 5 lines of meaningful content.
- Include: name, role, key contact info, website.
- Skip: long quotes, large logos, multiple social media icons (clutter).
- Don’t include legal disclaimers that exceed the email body โ bad ratio looks like spam.
- If your signature has a logo image, also have a text fallback (the alt text or the text-only version).
- Consistency matters more than cleverness โ same signature on all devices, all employees in a company using same template.
What’s next
- Webmail setup for signatures: Roundcube guide.
- Mail client setup if you’re configuring from scratch: Email setup guide.
- Mail client troubleshooting: Troubleshooting guide.
The simpler the signature, the more reliably it renders. Two lines and a logo beats six lines and three social icons every time. Set it up once across your devices, then leave it alone.
Was this helpful?
Thanks for your feedback!