我正在尝试使用山魈发送邮件。问题是,当我将多个收件人添加到“收件人”参数时,它会多次向“收件人”列表中的所有收件人发送同一封邮件。我期望将相同的邮件单独发送给列表中的每个人。我错过了什么吗?
{
"key": "app-key",
"template_name": "platform-invite",
"template_content": [
{
"name": "connection",
"content": "<a class=\"mcnButton \" title=\"Lets Go\" href=\"http://someurl\" target=\"_blank\" style=\"font-weight: normal;letter-spacing: normal;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;\">Lets go</a>"
},
{
"name": "mailbody",
"content": "<p>Hi </p>\n<p>I would like you to be a ... Tic tic tic...</p>"
}
],
"message": {
"subject": "My subject line over herer",
"from_email": "[email protected] /cdn-cgi/l/email-protection",
"to": [
{
"email": "[email protected] /cdn-cgi/l/email-protection,
"type": "to"
},
{
"email": "[email protected] /cdn-cgi/l/email-protection",
"type": "to"
},
{
"email": "[email protected] /cdn-cgi/l/email-protection",
"type": "to"
},
{
"email": "[email protected] /cdn-cgi/l/email-protection",
"type": "to"
}
],
"merge_vars": {}
},
"async": false,
"ip_pool": "Main Pool"
}
你的里面有一个选项发送选项 https://mandrillapp.com/settings/sending-options使收件人相互暴露。您可以取消选中该框,以便不在“收件人”标题中显示每个人的信息。默认情况下,您的帐户将使用您在“发送选项”中选择的选项。您可以在各个 API 调用中覆盖任何这些选项。在这种情况下,您可以使用preserve_recipients
参数来覆盖为您的帐户设置的当前默认值。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)