Backend Discussion

How to send a bunch email via sendgrid?

Normally we are sending the email on sendgrid one by one.

But specifically, we can meet some case to send a bunch email.

In the case, we can use the personalization of sendgrid.

The personalization has 1000 limitations. so if you want to send more emails than 1000, you need to split the request.

Please check this doc for the detail.

https://sendgrid.com/docs/for-developers/sending-email/personalizations/

{
  "from": "sender@yourdomain.com",
  "template_id": "YOUR TEMPLATE ID",
  "personalizations": [
    {
      "to": [
        {
          "email": "john@example.com"
        }
      ],
      "send_at": 1600188812
    },
    {
      "to": [
        {
          "email": "jane@example.com"
        }
      ],
      "send_at": 1600275471
    }
  ]
}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *