(Sendgrid v3 API) 我的 API 命令有问题吗(我的电子邮件以垃圾邮件结尾)?

(Sendgrid v3 API) Is there something wrong in my API command (my emails are ending up in spam)?

自从我在 Sendgrid 上设置我的免费电子邮件 API 帐户以来仅仅 1.5 周,而且从那以后我只发送了大约 12 封电子邮件(为了测试目的发给我的家人)。我的个人电子邮件地址 xxxxxxxx@gmail.com 有一个完全验证的单一发件人,我正在使用相同的发件人通过 API.

发送电子邮件

这是我构建的 cURL API,使用动态模板向 4 个地址发送电子邮件 -

curl --request POST \
  --url https://api.sendgrid.com/v3/mail/send \
  --header 'authorization: Bearer <MY_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "personalizations": [
    {
      "to": [{"email": "xxxxxxxx@gmail.com"}],
      "dynamic_template_data": {"first_name": "xxxxxxxx","date": "9th Nov. 2021","city": "Mumbai"}
    },
    {
      "to": [{"email": "xxxxxxxx@gmail.com"}],
      "dynamic_template_data": {"first_name": "xxxxxxxx","date": "27th Oct. 2021","city": "Mumbai"}
    },
    {
      "to": [{"email": "xxxxxxxx@gmail.com"}],
      "dynamic_template_data": {"first_name": "xxxxxxxx","date": "9th Jun. 2021","city": "Mumbai"}
    },
    {
      "to": [{"email": "xxxxxxxx@gmail.com"}],
      "dynamic_template_data": {"first_name": "xxxxxxxx","date": "21st Oct. 2021","city": "Mumbai"}
    }
  ],
  "from": {"email": "xxxxxxxx@gmail.com", "name":"xxxxxxxx"},
  "template_id" : "<MY_TEMPLATE_ID>"
}'

这封电子邮件完美地发送给了所有四个收件人,只是最后四个收件人都变成了垃圾邮件。由于我的帐户几乎是新的,而且我几乎没有发送过任何电子邮件(对于我发送的那些,没有人将它们标记为 spam/etc),我想知道是什么导致我发送的电子邮件最终成为垃圾邮件.. . 是不是我建的API有问题?发送给多人导致此问题吗?

请指导我。谢谢!

此处为 Twilio SendGrid 开发人员布道师。

您似乎已将一个 Gmail 地址验证为单一发件人,并且您正在向其他 Gmail 地址发送电子邮件。

验证为单一发件人让 SendGrid 知道您拥有该电子邮件地址,但这无助于向其他收件箱证明这一点。在这种情况下,您是从一个 Gmail 地址发送到另一个 Gmail 地址,这样 Gmail 100% 知道 Gmail 没有首先发送电子邮件。由于 Gmail 并未从 Gmail 地址发送电子邮件,因此无论内容如何,​​Gmail 都将其视为垃圾邮件。

使用 Single Sender Verification is good for testing your code, but it is not recommended for production use. To give yourself a better chance of not ending up in spam inboxes we recommend Domain Authentication. Domain Authentication also sets up SPF and DKIM,可以让您进入 DMARC 路径,所有这些都可以提高您的电子邮件发件人的声誉。