Forum Moderators: coopster

Message Too Old, No Replies

How do I Track Who Opens Email Messages?

         

JoefromPhilly

6:06 pm on Aug 31, 2007 (gmt 0)

10+ Year Member



I want to write a app that lets me send out email messages to my subscribers, and then know via my database who opened the message.

I want to know how to make the call from the html code that will be in the email message to the script, and how to properly terminate the script so that it displays a spacer gif.

It looks like I need to include in the email message something like this:
<img src="http://example.com/script.php?email="blah@blah.com"&client="client_name" />

But, once I get the parameters in the script, how do I properly display a tracking pixel, or otherwise terminate the script so that the rest of the HTML message gets displayed?

The messages need to be created in a form box on the fly, so I will need to include this tracking code in the PHP script that sends the email.

- Joe

- Joe

WesleyC

7:04 pm on Aug 31, 2007 (gmt 0)

10+ Year Member



This is basically impossible to do.

Why?

Simply because most e-mail clients (Outlook, Thunderbird) block remote requests, including images, by default. In short, there's no simple, reliable way of determining whether someone has opened an e-mail or not.

However, if you can convince users to allow remote images within the message, all you really need to do is have a 1px image on your server, call it with include() (or, to be more secure, possibly use file_get_contents() and echo), then exit the script without producing any output.

JoefromPhilly

7:41 pm on Aug 31, 2007 (gmt 0)

10+ Year Member



OK, but if I make a call to a pixel, how do I track which message was read?

- Joe

ceestand

7:50 pm on Aug 31, 2007 (gmt 0)

10+ Year Member



Joe it might not be too helpful, but this question was answered pretty well in the past month or so, so the answer is definitely out there in the archives...

henry0

8:57 pm on Sep 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Won't it be classified as SPAM due to "hidden content" reason?

cripplertd

5:31 am on Sep 2, 2007 (gmt 0)

10+ Year Member



can't you just make a on page load script that submits info to your form?