none
Images are called twice from the email in Outlook 2010 RRS feed

  • Question

  • Hi Team,

    I am working on some newsletters to be sent to various customers. I have prepared the required HTML and sending them through the C# Console application that I have developed on .Net framework. 

    I have a requirement where I need to track on the number of users who have opened the email (newsletter). For this purpose, with in the HTML for one of the image element I have mentioned the path to a HTTP module (written in C#). So, when ever the user opens the email the HTTP module is called and this module will split out the content for the image. And with in this module I have the necessary logging that will let me know the number of time the email was opened.

    The problem over here is that when I open the email in outlook  I am getting two hits for the HTTP module and hence the entry is made twice in the logs. The problem is only with the Outlook. I have checked this behavior in Outlook Express and I am getting only one hit. 

    Can any one help me resolve this?

    Thanks in advance.

    Thursday, June 21, 2012 3:54 PM

Answers

All replies

  • I don't think there is anything you can do short of treating 2 or more hits as a single hit if they occurred within a predetermined time internal (e.g. one minute).

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Thursday, June 21, 2012 4:26 PM
  • Hi,

    Basically I am trying to understand why there are two hits for the resource (image) when it is supposed to be displayed at only one location. Is there any way to differentiate between those two hits (I have checked the header, both the cases it was 'GET' request).

    Thanks

    Friday, June 22, 2012 5:06 AM
  • Probably because it first gets displayed by the reading pane, then by an inspector?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Friday, June 22, 2012 5:22 AM
  • Hi Dmitry,

    When the email is loaded in outlook the images are not loaded by default (as per the settings). I need to click on the link 'down load images' (provided by outlook) for the images to be loaded in the email. When I click this link is when the image is loaded in email and the hit is made twice to the server. So, the hitting is not happening when  the email is viewed in the reading pane.

    Thanks

    Friday, June 22, 2012 5:29 AM
  • I don't think it is important why that happens as it is out of your control, you pretty much need to live with this and come with a workaround.

    If I was doing this, I'd remember the IP address of the incoming requests and count all hits coming from the same IP address as one hit.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Friday, June 22, 2012 5:49 AM
  • I do have that implemented, Dmitry. Basically I need to display two counts, one is total number of email opened count and the other total unique opened count. I am able to get proper value for total unique opened count, but the problem is with total number of email opened count. Because of the outlook behavior I am unable to provide proper value for the total count. 
    Friday, June 22, 2012 5:54 AM
  • If both hits come within, say, 10 seconds, you can be 99% sure that you can count that as a single hit.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Friday, June 22, 2012 5:57 AM
  • Yes Dmitry, unfortunately I need to follow such workaround :(
    Friday, June 22, 2012 6:01 AM
  • I don't think you have much of a choice...

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Friday, June 22, 2012 6:16 AM
  • Thanks Dmitry, for all the guidance :) 
    Friday, June 22, 2012 6:31 AM