sendgrid-csharp icon indicating copy to clipboard operation
sendgrid-csharp copied to clipboard

Getting the status of event of sent mail using the message-id

Open vijay-pratap-singh opened this issue 9 years ago • 5 comments

Issue Summary

Hi Team,

We are using the SendGrid Web API version V3 to send the mails. We are storing the sent mails history in our local database. Now we want to update the event status(processed, read, open, etc.). For that, we will run the cron in background to get the status of event for the all sent messages using the message-id to update the status of respective sent mail.

  1. Is there option get the status of events(processed, read, open, etc.) of sent mail for the particular receiver using the message-id? If so, please let me know the API endpoints and some reference code.

  2. Also, if there are multiple recipient in a single mail, then how it will be updated? Because message-id is same for a sent mail. It is not related to multiple recipient.

Technical details:

  • sendgrid-csharp Version: master (latest commit: [commit number])
  • .NET Version: 4.5.2

vijay-pratap-singh avatar Apr 06 '17 08:04 vijay-pratap-singh

Hello @vijay-pratap-singh,

The Event Webhook will get you the status of events processed and custom args will allow you to tag emails for later inspection through the Event Webhook.

With Best Regards,

Elmer

SendGridDX avatar Apr 06 '17 16:04 SendGridDX

Thanks Elmer for the reply.

Also for the attachment content type, MIME type are set. For .xls and few other types there are multiple MIME Types are defined (as mentioned here: https://www.sitepoint.com/web-foundations/mime-types-complete-list/). So, I`m not sure which one to picup for the .xls.

Could you please provide the list of all MIME Type you are using/allowing there.

Thanks, Vijay

vijay-pratap-singh avatar Apr 11 '17 10:04 vijay-pratap-singh

Hello @vijay-pratap-singh,

I don't know which ones are specifically supported. I suggest you reach out to our support team for further assistance: https://support.sendgrid.com

Alternatively, since there are only a few (looks like 4 are listed), you might want to just try them out.

With Best Regards,

Elmer

thinkingserious avatar Apr 12 '17 06:04 thinkingserious

Ok Elmer. Thanks for the help.

vijay-pratap-singh avatar Apr 12 '17 06:04 vijay-pratap-singh

Can we get status of an email without using Eventhook?

iwannabebot avatar Mar 18 '19 06:03 iwannabebot