Guide

HTML link vs email attachment: which one actually works

A link wins on every axis that matters for an HTML file. An .html attachment is blocked or stripped by most major email providers as a phishing precaution, and even when delivered, opens as a download rather than a rendered page. A link to a hosted version of the same file passes every spam filter (it looks like normal text), opens directly in a browser, can be updated without resending anything, and can be tracked to see whether it was opened. The only case an attachment wins is offline access with no internet connection at all.

The comparison, side by side

QuestionAttachmentLink
Passes spam filtersUsually blockedYes
Opens as a rendered pageNo, downloadsYes
External assets load correctlyOften brokenYes
Can tell if it was openedNoYes, with the right host
Can be corrected after sendingRequires a resendYes, same URL
Works fully offlineYesNo, needs a connection

Why the attachment loses on delivery specifically

The core issue is not preference, it is that HTML is uniquely suited to phishing: a file that looks like a document can also be a working fake login form or a redirect. Mail providers treat it accordingly. Gmail blocks .html and .htm outright. Outlook and most corporate gateways do the same or strip the attachment silently before the message reaches the inbox. None of this depends on whether your specific file is safe, the filter cannot tell the difference at the point it decides to block it.

Turning a file into a link takes about the same effort as attaching it

The usual objection to using a link is that it adds a step. In practice, dropping the .html into a host built for this (LiveSend, for example) and copying the returned URL takes under a minute, about the same as locating the file to attach it in the first place. The difference is that one path reliably reaches the recipient and the other does not.

The short version

Unless the recipient genuinely has no internet access, send a link. It passes filters an attachment does not, opens correctly without a download prompt, and lets you know whether it was actually opened.

Ready to turn a file into a link? See the shortest path, no hosting knowledge required.

Frequently asked questions

  • Is it really true that email blocks .html attachments?
    Yes, and it is policy, not a bug. Gmail rejects .html and .htm attachments at send time. Outlook and most corporate mail gateways block or silently strip them, because an HTML file can impersonate a login page or run a script, making it a common phishing tool. This applies regardless of how legitimate your file actually is.
  • What does the recipient experience with each option?
    Attachment: often nothing arrives, or a download prompt appears with no preview. The recipient has to save the file and know to open it in a browser rather than double-click it as a document. Link: a normal-looking URL in the email body. One click opens a rendered page in the browser, exactly as intended.
  • Which one lets me know if it was opened?
    Only the link. A hosted page can log a view, a timestamp, and (depending on the host) an approximate location and time spent. A file attachment gives you nothing after you hit send, you have no way to know whether it was ever opened.
  • What about file size or interactivity?
    Attachments are capped by the sender and recipient mail servers, often a few megabytes, and any external assets referenced by the HTML (images, fonts, scripts hosted elsewhere) will not load from a local file. A hosted link serves the file as a real page, with all its interactivity, forms, and assets working as designed.
  • Is there any situation where an attachment is the right call?
    Genuinely offline scenarios, sending to someone who will open the file with no internet connection at all, or internal, developer-to-developer handoffs where the recipient explicitly wants the raw source. For anything reaching a client, a prospect, or a non-technical recipient, a link is the safer default.

Related guides

Want to try the LiveSend approach?

Paste your HTML, get a permanent link. Free for the first 3 documents.

Get started free