Search code examples
sendgridsendgrid-api-v3

How to track status of email in sendgrid without using SMTP.


I want to send emails which contain different contents to same user and I need to track their status. Are there any way to do that without using SMTP.


Solution

  • Sounds like you want Unique Args. These are called custom_args in the v3 API mail send argument, but it's the same concept.

    Once you activate the Event Webhook, all events will include the appropriate unique_args, so you can relate each specific message to each.

    Also, whenever you send a message to SendGrid, the acceptange response includes a message_id, which will be in all those events.