• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

load image from server when user opens an email

 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 28344
97
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".)
 
Bartender
Posts: 7645
178
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 5076
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic