Is there a way to determine which API Key sent a specific email and activity by API key? As I look at overall usage, I'm trying to gauge which module is sending the most emails, but I can't seem to find it in the UI or in the API docs.
No, SendGrid doesn't have that information. I think there's an expectation that you know how you're sending to them, and can track that information on your side "pre SendGrid" if desired.
Related
Is there a way to query email delivery from a Sendgrid account which includes the API Key used to send that email? We dont have subusers but a bunch of Keys used by different applications instead.
If you have the extended email activity history add on you can fetch your email activity from the API. One of the query types you can use to filter the results is the api_key_id. So, you can loop through your API key IDs and return the emails sent by each one.
How would I parse an email and extract flight reservation details (if it exists)?
I'm only looking to parse Gmail emails right now, so if it specifically uses the Gmail API, that's okay.
Though I had a look at the Gmail API (https://developers.google.com/gmail/api/v1/reference/users/messages/get), and tried the API on a specific message from my inbox that contains the flight reservation popup on the webapp, and couldn't find anything flight-related in the API.
So how would I do that in the generic case? By parsing directly the email body? Is there a library for that?
Thanks.
I am trying to figure out how can I make it possible to send an email from my
application to Sendgrid and have it come back.
I want to use coldfusion to send an email using X-SMTP API. I found a documentation
online here but still wondering if there's any documentation available other
than the web API one?
http://thehatrack.net/blog/integrating-sendgrid-with-your-coldfusion-application/
SendGrid's Event Webhook is the only way to get email reads on an individual basis. This will POST an event to your server every time an email is read (among several other events).
The only "pull" based solution to get individual email events from SendGrid is the bounces endpoint, which will tell you when an email bounces (and is certainly not read), but nothing else.
If you want to retrieve individual read events from SendGrid, you'll need to connect the Event Webhook to an external service like Keen.io, and then leveraging their API to get individual events.
I want to collect information about how many emails that I have sent, has been read. I want to use method where I will put image in email and once the image gets rendered I can catch that event. I know this is not hundred percent reliable.
I am using a SendGrid for sending my emails. I was wondering does SendGrid provides service like this?
I was looking through SendGrid documentation but was not able to find what I need.
You want to use the Open Tracking app. You can also enable, disable, and configure this app via the web API or SMTP API headers.
What is the best way of tracking responses for email campaigns? I was thinking on adding something to the reply-to field of the email (for example luqita+campaigns#stackoverflow.com), but I'm not sure if there is something more neat that could avoid this?
I thought about headers too, but it's important to note that the address luqita#stackoverflow.com would send many different campaigns, and the 'in-reply-to' header info would not be useful then to differentiate (while using luqita+campaign1 or luqita+campaign2 could)
What can I do?
So you want to be able to execute some logic when someone replies to an email you have sent through SendGrid? If you have access to change the MX record of the domain of the email address at which you want to receive the replies, you could use SG's Parse API to get a POST request to a script whenever email is receive at the address.
I think you would indeed have to set a magic reply-to address for each campaign. This seems like a perfectly fine solution; it's also how SG itself tracks bounces - it sets the return-path to something like bounces+{attempted-recipient-email}#sendgrid.com. Then examine the 'to' parameter of the POST notification you receive to know which campaign the reply is associated with.
When you say "tracking responses", do you mean that you expect users will reply to the Email, or do you mean that they'll click on a link in the Email and interact with a web site?
SendGrid obviously offers click tracking and open tracking, and you can set up to 10 different categories for tracking campaign stats and see delivery/bounces/opens/clicks/etc based on those categories. They also have a Google Analytics plugin that can feed back some analytics data to Google. And as #LinusR mentioned in his answer, the SendGrid Parse API can be set up in a way that reply Emails can get parsed and posted back to your site.
If the user will be interacting with your web site, you can use the "unique args" setup at SendGrid to set a unique string/hash to append to any URLs that can help identify a particular user, campaign, or whatever else you want to track.