Sub topic 9
Content, links, and formatting as supporting signals
This chapter assumes you know how SPF, DKIM, and DMARC work, what sender reputation is, and how the filtering stack is layered. Content is the last of those layers. It rarely decides placement alone. It adds evidence to a decision that identity, reputation, and engagement have mostly made already.
Why content is a supporting signal
Older spam filters relied on keyword lists, so a message with "FREE" in the subject line could be blocked. Modern mailbox providers rely mainly on who sent the message and how recipients treat that sender's mail. Content features still feed machine-learning models, but they are weighted against those stronger signals.
In practice:
- A sender with strong reputation and good engagement can send ordinary promotional wording without trouble.
- A sender with poor reputation gains little by polishing the copy. The same message can still land in spam.
- Content matters most at the margins. It can tip a borderline message either way, and it can cause blocks when it looks like phishing or malware.
Links
Links are often the most heavily checked part of a message, because they are where harm happens.
- Link domains have their own reputation. Filters check every URL domain against blocklists. A clean sending domain can be hurt by a bad domain in the body.
- Shared link-tracking domains. If your ESP wraps links in a domain shared with many customers, one bad sender can affect everyone. A custom tracking domain on your own subdomain ties that reputation to you.
- URL shorteners. Public shorteners hide the destination and are heavily abused. Avoid them in bulk mail.
- Mismatched links. Link text that shows one domain while the href points to another looks like phishing.
- Redirect chains. Several hops before the final page add risk and delay.
Formatting
Formatting signals are about whether the message looks like mail a real company sends.
| Factor | Safer practice | Riskier practice |
|---|---|---|
| Text and images | HTML with real text plus a plain-text alternative | One large image with little or no text |
| HTML quality | Clean, valid markup | Broken tags, hidden text, tiny fonts |
| Subject line | Accurately describes the message | Deceptive "Re:" or "Fwd:" prefixes, all caps |
| From name and address | Consistent and recognizable | Changing names, lookalike domains |
| Attachments | Few, expected file types | Executables, macro-enabled documents, archives |
Hidden text is a classic evasion technique, so filters treat it as a strong negative signal.
A simple pre-send check
You can automate part of a content review. This script flags some common issues in an HTML message. It only checks a few patterns. It does not predict placement.
import re
from urllib.parse import urlparse
SHORTENERS = {"bit.ly", "tinyurl.com", "t.co", "goo.gl"}
def check_html(html: str) -> list[str]:
problems = []
text = re.sub(r"<[^>]+>", "", html).strip()
if len(text) < 50:
problems.append("very little visible text")
for href, label in re.findall(
r'<a\s+[^>]*href="([^"]+)"[^>]*>(.*?)</a>', html, flags=re.S
):
host = urlparse(href).hostname or ""
if host in SHORTENERS:
problems.append(f"URL shortener: {host}")
shown = re.search(r"https?://([^/\s<]+)", label)
if shown and shown.group(1) != host:
problems.append(f"link text shows {shown.group(1)} but goes to {host}")
return problems
sample = '<p>Hi!</p><a href="https://bit.ly/x1">https://example.com/offer</a>'
for issue in check_html(sample):
print(issue)Running it prints three lines: the short text, the shortener, and the mismatched link.
Common mistakes
- Chasing spam-word lists while ignoring complaint rates and bounces.
- Testing content in a seed-list tool and treating the result as proof, when the real cause is reputation.
- Changing templates and sending infrastructure at the same time, which makes the cause of a change impossible to separate.
- Leaving old campaign links pointing at expired or reused domains.
Exercise
A marketing email comes from a domain with good reputation and passes DKIM and DMARC. It contains one link through a public URL shortener, and its recent copy is unchanged from earlier campaigns that reached the inbox. Placement dropped this week. Which content change would you try first, and why?
Show answer
Replace the shortener link with a direct link on a tracking domain you control. The copy is unchanged from mail that worked, so the new element is the likeliest cause. Shorteners are widely abused and can appear on blocklists. Also check the link domain against blocklists to confirm.