matthewolsson matthewolsson - 1 year ago 84
HTML Question

Specifying the subject line in an HTML email

I'm coding a quick HTML email using Foundation for Emails (
The tech stack isn't of huge importance, just highlights what I'm trying to accomplish in general.

Something I'm wondering about is when someone receives my email (through any of a huge number of possible email clients) is it possible for me to specify in my HTML template what the "Subject" line should read?

In case I'm not being clear enough, I'm referring to the teaser text you see in your inbox before opening the actual email:

Like in this instance from Gmail below: the "Your order of "Shovel Knight Amiibo"... text.

Is it possible to specify that text in my HTML template? Or is that handled by a service request?

Answer Source

The mail subject is a header, e.g:

From: John Smith <>
Subject: Good news!

It isn't taken from the message body so the answer is no.

You need to specify it with whatever program/code you use to actually deliver the message and it has to be plain text.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download