• Post Reply Bookmark Topic Watch Topic
  • New Topic

load image from server when user opens an email

 
Rahul Ba
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to load image from server when user opens an email. This is because I want to track users who reads an email.
Now, my query here is how to load image from server and and send some parameters.
 
Paul Clapham
Sheriff
Posts: 21975
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just send HTML as the e-mail body and include an ordinary tag which loads the image. The URL can of course include parameters.

Probably you'll want to have a servlet return the image, so it can take the parameters and store them in your user-tracking database.

Hopefully that covers the question, but don't hesitate to ask more if it doesn't.

(By the way when I told my wife that companies track people's e-mail that way she was repulsed and described it as "creepy".)
 
Tim Moores
Saloon Keeper
Posts: 3336
61
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most email clients won't load the images by default, though, and the user may not force it to. (I know I never do.) So there's no guarantee that the servlet will be triggered.
 
Norm Radder
Rancher
Posts: 1649
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Paul You need to explain the real world to your wife.  There are too many bad guys putting things  on the web where a wrong click can load malware.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!