【问题标题】:Send email via the Mandrill API containing multiple BCC addresses通过包含多个密件抄送地址的 Mandrill API 发送电子邮件
【发布时间】:2013-08-15 05:35:35
【问题描述】:

他们是否可以通过包含多个密件抄送地址的 Mandrill API 发送电子邮件? Mandrill API documentation 在其 API 中仅显示一个 bcc_address。那么是否不能发送包含多个密件抄送地址的电子邮件?

【问题讨论】:

  • 到目前为止你尝试过什么?告诉我们什么是行不通的,有人可能会帮助你。

标签: mailchimp mandrill


【解决方案1】:

是的,完全可行!根据Mandrill API send documentation,可以在to字段中指定多个地址,并标记为typebcc

这是一个例子:

{
   "to":[
      {
         "email":"recipient.email@example.com",
         "name":"Recipient Name",
         "type":"to"
      },
      {
         "email":"bcc.recipient.email.1@example.com",
         "name":"BCC Recipient Name 1",
         "type":"bcc"
      },
      {
         "email":"bcc.recipient.email.2@example.com",
         "name":"BCC Recipient Name 2",
         "type":"bcc"
      }
   ]
}

希望这会有所帮助。

还要确保在消息部分下传递值 "preserve_recipients": true

【讨论】:

  • 你真的测试过这个吗?它似乎根本不起作用。我已经尝试了几次,但在日志中没有显示任何内容。
  • 我最近测试了这个并且它有效。但是,我必须设置 "preserve_recipients":true 才能像我预期的那样工作。请参阅文档。如果您在 API 日志中没有看到任何活动,则可能需要检查您是否使用了正确的 API 密钥和正确的 API URL。
【解决方案2】:

如果您尝试向多个用户发送电子邮件,但不希望他们能够看到您向谁发送了电子邮件,并且无法“全部回复”,则可以将 preserveRecipients 设置为 false。

来源:http://help.mandrill.com/entries/21688056-Using-SMTP-Headers-to-customize-your-messages#preserve-recipient-headers-for-group-emails

【讨论】:

    猜你喜欢
    • 2014-09-30
    • 2021-04-29
    • 2016-04-23
    • 2016-07-04
    • 2021-12-15
    • 1970-01-01
    • 2012-03-20
    • 2019-07-16
    相关资源
    最近更新 更多