在HTML电子邮件中指定主题行(Specifying the subject line in an HTML email)

编程入门 行业动态 更新时间:2024-10-17 02:49:21
在HTML电子邮件中指定主题行(Specifying the subject line in an HTML email)

我正在使用Foundation for Email编写一个快速的HTML电子邮件。 技术堆栈并不重要,只是突出了我一般要完成的工作。

我想知道的是当有人收到我的电子邮件(通过大量可能的电子邮件客户端)时,我可以在我的HTML模板中指定“主题”行应该阅读的内容吗?

如果我不够清楚,我会在打开实际电子邮件之前提到您在收件箱中看到的预告文字:

就像在这个例子中从下面的Gmail:“您的Amazon.com订购的”Shovel Knight Amiibo“......文本。

是否可以在我的HTML模板中指定该文本? 或者是由服务请求处理?

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 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?

最满意答案

邮件主题是标题 ,例如:

From: John Smith <john.smith@example.com> Subject: Good news!

它不是从消息体中获取的,所以答案是否定的

您需要使用用于实际传递消息的任何程序/代码来指定它,并且它必须是纯文本。

The mail subject is a header, e.g:

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.

更多推荐

本文发布于:2023-07-07 21:32:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1068469.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电子邮件   主题   HTML   email   line

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!