Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.94/5 (5 votes)
See more:
I am working with a project be related to Gmail.

When I send from a Gmail to others, I want to know whether the recipient of mail (to whom mail was sent) read/opened my email or not.

So, how can I write codes?

Please, help me!

Thank you so much!
Posted
v3
Comments
Thanks7872 18-Sep-13 5:41am    
Send gmail? read gmail or not? What's this gmail?
alex giulio 18-Sep-13 6:17am    
send gmail: that's sender mail
read mail: that's receiver mail
help me, please!
alex giulio 18-Sep-13 5:52am    
please help me! i need it so much!
BillWoodruff 18-Sep-13 22:28pm    
If the receiver configures their e-mail facility (like GMail) to never show images in HTML e-mail unless they specifically choose to, or to view e-mail as text-only, this cannot be done.

Solution

If you want to know whether the user read your mail or not, then follow the below technique.


  1. Add one image with with dimension 0px*0px inside the mail HTML.
  2. On src attribute of image, provide one aspx page link.
    HTML
    <img src="http://www.example.com/MyPage.aspx" height="0" width="0"></img>

  3. On Page_Load of that aspx page, you can write any code to handle the request.



How it works?

So, when user opens the mail and reads it, the image points to the aspx page and the Server Side Code gets executed simultaneously.

When code gets executed, you can do anything like storing that in a Database Table or logging to Text Files. In that way, you would confirm that the user read your mail.
 
Share this answer
 
Comments
alex giulio 18-Sep-13 6:48am    
Thank Tadit Dash, but i just code aplication of software, not using web code. can you help me by other!
Then you can call any Web Service (asmx) or WCF Service (svc) instead of aspx page.
Execute one service function and perform required operation.
Pheonyx 18-Sep-13 6:59am    
The above may or may not work as well. Most systems do not do Read Receipts, and these days, most e-mail readers do not download images by default (from what I have observed) so if a user was to open the said email, read the contents but not download images then you would never know.
Oh yes, in that case, it will not work, correct.

If the user is really interested, then he/she will definitely see the images, right? :P :P

Anyway, this may be a solution, but not 100%. :)
Pheonyx 18-Sep-13 7:10am    
Its the same sort of solution I've implemented, then a client said it didn't work and I had to point out those points to them, so thought it worth mentioning :-)

Gets my +5
I got another way out to get open statistics in following link: http://www.aspnetemail.com/samples/emailtracker/default.aspx
This is the easiest way.
 
Share this answer
 

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