1
votes

We are sending emails from our application using office 365 SMTP relay which we setup using option 3 from link:

https://support.office.com/en-us/article/How-to-set-up-a-multifunction-device-or-application-to-send-email-using-Office-365-69f58e99-c550-4274-ad18-c805d654b4c4?ui=en-US&rs=en-US&ad=US

Queries we have are as,

  1. What steps we should follow to track emails whether they are being delivered, opened, clicked, or bounced?
  2. Is there any API from where we can access email logs to get the email status ?
  3. Can we track emails we send from office 365 smtp emails or its not possible?

Please advice.

1

1 Answers

1
votes

You should be able to use Exchange Online REST API to determine delivery/bounce, but as for opened or clicked, you will have to resort to techniques such as read receipts and email tracking.

You can find an example of email tracking here, an except of which is below ... http://blog.giftbit.com/email-open-tracking-why-and-how-to-do-it

Email open tracking is a simple concept and implementation:

Create a standard webapp driven URL in your product that accepts your tracking information via the URL or in parameters, but always return an image content type and corresponding binary image data (such as ‘image/gif’, and usually a 1×1 pixel transparent .gif).

Embed the URL as the src of a tag in all outgoing emails you wish to track, adding appropriate information to the URL to identify the email and information you wish to track. Because the returned content type is an image, it will render properly as an image.

Done! Whenever an email is opened and that tiny invisible image is rendered, your URL will be called. Capture and store the information to your database, etc.