如何发送“标记为重要”使用轨道邮件

发布于 2024-11-09 18:31:55 字数 223 浏览 2 评论 0 原文

我需要你的意见,因为我不知道这是否可能。

我希望我的应用程序发送的一些电子邮件应该“标记为重要”,以便最终用户在 Evolution/Outlook 中收到此邮件时,他们应该知道电子邮件的重要性。

目前,当我使用进化将任何电子邮件标记为“标记为重要”时,它会将邮件主题和其他字段的颜色更改为红色

I need your views as i don't know is it possible or not.

I want some emails send by my application should 'Mark as Important' so that when end user receive this mail in there Evolution/Outlook they should know the importance of email.

Currently when i marked any email using evolution as 'Mark as Important' it changes the colour of mail subject and other fields to red.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

自此以后,行同陌路 2024-11-16 18:31:55

其他两个答案都是正确的,但问题是,Outlook 使用非标准标头来表示重要性。它称为 X 优先级,因此您必须将其包含在外发邮件中。您还可以为旧版 Outlook 添加“X-MSMail-Priority: High”。


def notification
  mail({
      :to => '[email protected]',
      :subject => 'My subject',
      :from => '[email protected]',
      'Importance' => 'high',
      'X-Priority' => '1'}) do |format|
    format.text
    format.html
  end
end

Both other answers are correct, but the thing is, Outlook uses a non-standard header for signaling importance. It's called X-Priority, so you have to include it in your outgoing mail. You can also include "X-MSMail-Priority: High" for older Outlooks.


def notification
  mail({
      :to => '[email protected]',
      :subject => 'My subject',
      :from => '[email protected]',
      'Importance' => 'high',
      'X-Priority' => '1'}) do |format|
    format.text
    format.html
  end
end
没︽人懂的悲伤 2024-11-16 18:31:55
class Notifier < ActionMailer::Base
  default :from => '[email protected]',
          :return_path => '[email protected]'

  def welcome(recipient)
    @account = recipient
    mail(:to => recipient.email_address_with_name,
         :bcc => ["[email protected]", "Order Watcher <[email protected]>"],
         :subject => "No way!",
         :importance => "High") # <======
    end
  end
class Notifier < ActionMailer::Base
  default :from => '[email protected]',
          :return_path => '[email protected]'

  def welcome(recipient)
    @account = recipient
    mail(:to => recipient.email_address_with_name,
         :bcc => ["[email protected]", "Order Watcher <[email protected]>"],
         :subject => "No way!",
         :importance => "High") # <======
    end
  end
我们的影子 2024-11-16 18:31:55

MIME RFC 列出了重要性作为标头,可以通过 MIME 电子邮件发送。可以使用的值有高、正常或低。要发送一封已调整重要性的电子邮件,请使用允许您通过 API 方法设置重要性的 API,或者允许您设置单独标头的 API(例如 TMail)。

我不了解 Ruby,所以我无法给你一个例子,但希望这能为你指明正确的方向。

The MIME RFC lists importance as a header that can be sent with MIME email. The values that can be used are high, normal or low. To send an email with an adjusted importance, use an API that allows you to either set the importance via an API method, or one that allows you to set individual headers (such as TMail).

I don't know Ruby, so I can't give you an example, but hopefully this points you in the right direction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文