mheavers
mheavers

Reputation: 30158

how to find the IP address of an email recipient

I'm wondering if it's possible, through perhaps pixel tracking or another means, to know an email recipient's IP address to provide location-based dynamic content?

Upvotes: 2

Views: 4239

Answers (2)

Greg
Greg

Reputation: 1503

Pixel tracking is easy, but you mentioned "dynamic content".

This means you need to make your email content change after the recipients open their email, which can only be achieved by javascript.

As far as I know, some email clients will block javascript execution, see here.

If you can use the first mail to record user's ip address, and store in database, you can use the information in the second mail. Or you can provide a link in your email content, which leads the user to a dynamic webpage.

@Aviator provided a nice solution of generating dynamic image to solve the problem.

Upvotes: 2

Mr Dog
Mr Dog

Reputation: 396

The most reliable way would likely be to embed a tiny image in the header that links to one of your servers. Then when the open the image you can get their ip address based on where it was accessed.

Upvotes: 3

Related Questions