简体   繁体   中英

Specifying the subject line in an HTML email

I'm coding a quick HTML email using Foundation for Email s. 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 Amazon.com 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?

The mail subject is a header , eg:

From: John Smith <john.smith@example.com>
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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM