0

我一直在收到带有图片和主题行的促销电子邮件。我只在 Gmail 中看到过这个。不是表情符号,而是收件箱预览中主题行部分正下方的图像预览电子邮件更容易吸引人。我一直在检查谷歌一段时间,看看这个功能叫什么,但找不到任何线索。非常感谢任何有关此的信息。

4

2 回答 2

3

Gmail Promotion Annotation 自 2018 年以来,您确实可以通过在电子邮件头部使用 JSON-LD 标记在 Gmail 中添加带有预览的图像。Gmail 促销标签可以具有/显示:

  • 标识
  • 图片
  • 主题
  • 带有日期框架的交易徽章
  • 徽章设计中的折扣代码

到目前为止,定制非常严格,但谷歌指南在下面的代码片段中进行了注释:

<script type="application/ld+json">
 [{
   "@context": "http://schema.org/",
   "@type": "Organization",

   // WARNING: Before sending email, either point the logo
   // at your own image or delete the logo annotation.
   //
   // If showing a logo, we recommend using an https URL.
   // It's not a requirement today, but may be in the future.
   "logo": "https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png"
  },{
   "@context": "http://schema.org/",
   "@type": "EmailMessage",

   // Use this optional alternative subject line to avoid duplicate text
   // between the subject, deal badge, and discount code.
   "subjectLine": "[Important] Please add subject line in annotation"
  },{
   "@context": "http://schema.org/",
   "@type": "DiscountOffer",

   // Describe your discount, this will be shown as a badge (eg "25% off" or "free 
      shipping")
   "description": "20% off",

   "discountCode": "PROMO",
   "availabilityStarts": "2019-07-21T03:42:38-07:00",
   "availabilityEnds": "2019-07-24T03:42:38-07:00"
  },{
   // Promotion card with single image.
   // We recommend using an https URL.  It's not a requirement today, but may be in 
       the future.
   // Any image size will work and will just be cropped automatically.
   // GIF & WEBP images are not supported and will be filtered out.
   // Sample image is 538x138, 3.9 aspect ratio
    "@context": "http://schema.org/",
    "@type": "PromotionCard",
    "image": "https://www.google.com/gmail-for-marketers/promo-tab/markup- 
     tool/sample.png"
 }]
</script>

可以在 Google Developers 文档中找到此答案的资源: Promotion Tab Documentation

于 2019-07-22T11:04:04.920 回答
-1

将事件 onmouseover=FuntionName() 添加到每个 GridView 行,并显示将包含该消息的弹出窗口。但是从客户端获取

于 2018-07-29T09:30:22.767 回答