0 votes

In my c# application I am able to mark the specific email as read by MarkMessageSeenByUID() method but I also want that email to load the html code which eventually tracks the open through pixel image.

How do I change the status of email as read in my report when I automatically read the mail using c# program.

by

1 Answer

0 votes

It seems you are confusing some things.

Sender may include tracking image into emails HTML.

It makes no sense to do that on the receiving side:
First, IMAP generally can't modify existing emails.
Second, receiving application knows when user downloaded and displayed specific email.

Maybe you need to describe your scenario in detail (e.g. how your users read emails, what is the purpose of the application you are developing) so we can understand it better.

Mail.dll only downloads emails from the server and marks them as read.

It doesn't hit your IMG src address.

To trigger this, you need to use IMail.Html property, extract IMG tag address and hit it with some HTTP client.

by (301k points)
edited by
...