Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to overcome that gmail, yahoo, outlook ect., blocking images src tag in mails which are coming from untrusted site


Hi, I am trying to track user if they opened the mail or not by sending an image with display none. If user opens the mail then image src goes to particular page with sending msg_id in query string.

<img src="http://192.168.1.110/checkreademail.aspx?msg_id=650" style="width:0px;min-height:0px;border:0px; display:block;">

But gmail, yahoo, outlook blocking this image.

Gmail Blocking as (i.e.,) convert that tag as below given

<img src="https://ci5.googleusercontent.com/proxy/2fbXxYoj02gJyGev2m0S_s
DQtariUnV6wYaLdNPxqzy0hd0lIY5ey1QOmSED5t8_gi4aaFDEm-7ALg8v7xeVCVHQvThfaRZTVRg=s0-d-e1-ft#http://localhost:3735/checkreademail.aspx?msg_id=650" tyle="width:0px;min-height:0px;border:0px; display:block" class="CToWUd">


It adding extra character while mail delivering to user. So, can't reach the code to track the user. I have to send the control to "checkreadmail.aspx" with msg_id in query string in order to find the user read the mail or not.

Can anyone please give any solution to solve this issue.

What I have tried:

I had tried by sending the image with the trusted site like this

<img src="http://www.aryvart.com/checkreademail.aspx?msg_id=650" style="width:0px;min-height:0px;border:0px; display:block;">

this also converting like
<img src="https://ci5.googleusercontent.com/proxy/2fbXxYoj02gJyGev2m0S_s
DQtariUnV6wYaLdNPxqzy0hd0lIY5ey1QOmSED5t8_gi4aaFDEm-7ALg8v7xeVCVHQvThfaRZTVRg=s0-d-e1-ft#http://www.aryvart.com/checkreademail.aspx?msg_id=650" tyle="width:0px;min-height:0px;border:0px; display:block" class="CToWUd">

Please help me to solve.
Posted
Updated 29-Mar-16 1:18am
v2

These are security measures to help prevent spam and injection of malicious urls. If you could simply get around these measures there wouldn't be any point to them.
 
Share this answer
 
You can't.
It's there to prevent such tracking - phishers and such like used them to identify "active" email addresses and target their garbage.
You can't get round it, or so would they!
 
Share this answer
 
You can't overcome this.

Hidden email tracking violates the privacy of the recipient and is used by spammers and phishers. Therefore, many providers like Google and Yahoo have disabled loading of images by default when using web interfaces. The user must enable it explicitly. Similar applies to most mail applications.
 
Share this answer
 
Comments
Member 12423101 29-Mar-16 7:26am    
It is actually a Campaign project. Marketing people sending there offers to user. We have to report the marketing people how much response came from user side.

My project is fully based on this concept. I have to give report to the client if they opened the mail or not.

So, Please can you tell me solution for this.
Jochen Arndt 29-Mar-16 7:39am    
"You can't overcome this."

Tell the marketing people that senders using such techniques are untrustworthy. I won't buy from them.

If they really want a feedback use other techniques like read or return receipts. But note that those can be disabled too and there is no guarantee to receive them.
Member 12423101 29-Mar-16 8:12am    
Thank you for your quick replay.

Can you please tell me any other techniques to do the same functionality of getting feedback from user who receiving the mails.
Jochen Arndt 29-Mar-16 8:15am    
I already mentioned them: "Read receipt" and "Return receipt".
See https://en.wikipedia.org/wiki/Email_tracking
Member 12423101 29-Mar-16 8:31am    
Thanks. I am using .NET c#(Web application)coding for my project. Your sent link contains only the theoretical explanation of the concept.

Could you please give me any sample code in C# to do the concept. I may be more help full.

Hope you will do the most favorable of purpose. Thank in advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900