相关疑难解决方法(0)

Mandrill通过REST API将多个人作为单独的消息发送

我正在尝试使用mandrill发送邮件.问题是,当我向'to'参数添加多个收件人时,它会与'to'列表中的所有收件人多次发送相同的邮件.我期待将相同的邮件单独发送给列表中的每个人.我错过了什么吗?

{
    "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": "superman@mydomain.co",
        "to": [
            {
                "email": "person1@gmail.com,
                "type": "to"
            },
            {
                "email": "person2@gmail.com",
                "type": "to"
            },
            {
                "email": "person3@gmail.com",
                "type": "to"
            },
            {
                "email": "person4@gmail.com",
                "type": …
Run Code Online (Sandbox Code Playgroud)

rest mandrill

9
推荐指数
1
解决办法
6411
查看次数

标签 统计

mandrill ×1

rest ×1