在单个 SendGrid 请求中向同一用户发送多封电子邮件

时间:2021-01-08 19:36:26

标签: sendgrid sendgrid-api-v3

{
    "headers": {},
    "endpoint": "mail/send",
    "method": "POST",
    "queryParams": {},
    "baseUri": "",
    "body": {
        "from": {
            "name": "Test",
            "email": "test@noreply.com"
        },
        "subject": "Test Send Grid Mail Service",
        "personalizations": [
            {
                "to": [
                    {
                        "email": "user@test.com"
                    }
                ],
                "subject": "Test Send Grid Mail Service",
                "custom_args": {
                }
            },
            {
                "to": [
                    {
                        "email": "user@test.com"
                    }
                ],
                "subject": "Test Send Grid Mail Service",
                "custom_args": {
                }
            }
        ],
        "content": [
            {
                "type": "text/html",
                "value": "Hi"
            }
        ]
    }
}

我正在使用此请求正文向同一用户发送多封电子邮件(在本例中为 2 封电子邮件),但发送网格仅发送一封电子邮件。有没有办法在单个发送网格请求中多次向同一用户发送多封电子邮件(在本例中为 2 封电子邮件)?

0 个答案:

没有答案