Forum Moderators: coopster
<img src="http://www.example.com/1px_email_track.php?email=example@example.com" />
Then, just write the 1px_email_track.php script that will write the date/time that the img was requested from that email address. This usually works fine. I usually make the script output a real 1px transparent gif too just so the user doesn't get a broken image.
I can post an example with actual code later if you are interested. I am short on time right now.
if( $_GET['id']!= '' )
{
$q = "UPDATE `email_tracker` SET `opened_dt` = NOW() WHERE `id` = ".sq( $_GET['id'] )." AND `opened_dt` IS NULL";
mysql_query( $q );
}
header( 'Content-Type: image/gif' );
header( 'Content-Length: '.filesize( '1px.gif' ) );
readfile( '1px.gif' );
You will need a 1px.gif file which you can easily find on the web or make yourself in Photoshop.