Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4097300
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:09:23+00:00 2026-05-20T20:09:23+00:00

I have seen the service like spypig.com placing a small image in the email

  • 0

I have seen the service like spypig.com placing a small image in the email and tracking when it is opened and from where. They track city, country, IP address etc. How is this done?

  1. How do we know when the mail is opened? And how is the image
    generated?
  2. How is the IP address detected and how is it possible to know location from
    it?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:09:23+00:00Added an answer on May 20, 2026 at 8:09 pm

    Basically, in the HTML body of your email, there will be an <img> tag that would look like this :

    <img src="http://www.yoursite.com/tracker.php?id=123456" alt="" />
    

    When someone reads his mail, with images enabled, the email-client will send a request to tracker.php, to load the image, passing it id=123456 as a parameter.

    This tracker.php script will be on your server, and, when called, it will :

    • Check the id parameter,
    • Use it to find to which email address it corresponds — when generating the email for each one of your subscribers, you’ll have generated an id different for each e-mail.
    • Do some stuff — like log “email 123456 has been opened”, and some additional informations
    • return the content of a small image ; like a 1×1 transparent gif.

    The tracker.php script knows from which IP address it’s been called — like any other PHP script :

    $ipAddress = $_SERVER['REMOTE_ADDR'];
    

    And, starting from this IP address, you can use a geolocation service to find out from where in the world the email has been opened.

    As a couple of examples, you could take a look at MaxMind, or IPInfoDB

    As you know that id=123456 corresponds to one specific email address, this allows to find out where each one of your subscribers are.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen recommendations (Juval Lowy, et al) that a service contract should have no
I have seen in a few libraries, Spray for example, dual package specifications like
I have seen this question and its answers and they clear up some of
I have started prgramming a windows service. I have added a notify icon from
i am coding Email newsletters. i have seen some guidelines regarding Good email coding..
I have a windows service that picks up messages from various MSMQs. The service
I have a small Spring web application, with the typical MVC Service DAO JPA/Hibernate
I have written a windows service in C. I would like to install/uninstall it
I would like to create a image uploading service (yes, i am aware of
Note: I have seen this and tried to take as much from it as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.