3s2ng Posted October 31, 2006 Share Posted October 31, 2006 Hello Freaks,I'm just wondering if its possible to track every sent email. I mean when the user reads the email using their email client. I just want to make a report if the email sent to the sure was read. I just want to track the date/time the email was read by the user.Any inputs would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/ Share on other sites More sharing options...
AbydosGater Posted October 31, 2006 Share Posted October 31, 2006 I dont think this can be done! It might require to have another mail() function hidden in the end of your email so when its opened, the mail() runs and emails you back, but ive never heard of a client that lets PHP run within emails! Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117219 Share on other sites More sharing options...
Cep Posted October 31, 2006 Share Posted October 31, 2006 No thats not possible, you can only do this on a private messaging system on your own site as you have no control over external email clients or servers. Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117224 Share on other sites More sharing options...
Psycho Posted October 31, 2006 Share Posted October 31, 2006 Well, there is one way to attempt to do this, but it won't work for every email client that the recipient may be using. The trick is to make it an HTML email and to include an image link to a php page that returns a transparent gif. When that specific gif is accessed (by the person reading the email) you will know they have read it. however, if the user's email does not render the HTML or if it blocks images by default, this will not work.For example, you send an email to Bob and make the source for an image as www.mysite.com\blank.php&user=bob123. You could use any variable instead of 'user' but the value for each email sent must be unique. When the email is sent you store the information about the email and the unique identifier in a database or flat file. This would most likely be done in an automated process.Then you create the php page that the user will reach when trying to download the image. The page will record that the particular user accessed the file. Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117299 Share on other sites More sharing options...
jaymc Posted October 31, 2006 Share Posted October 31, 2006 [quote author=mjdamato link=topic=113325.msg460544#msg460544 date=1162306964]Well, there is one way to attempt to do this, but it won't work for every email client that the recipient may be using. The trick is to make it an HTML email and to include an image link to a php page that returns a transparent gif. When that specific gif is accessed (by the person reading the email) you will know they have read it. however, if the user's email does not render the HTML or if it blocks images by default, this will not work.For example, you send an email to Bob and make the source for an image as www.mysite.com\blank.php&user=bob123. You could use any variable instead of 'user' but the value for each email sent must be unique. When the email is sent you store the information about the email and the unique identifier in a database or flat file. This would most likely be done in an automated process.Then you create the php page that the user will reach when trying to download the image. The page will record that the particular user accessed the file.[/quote]Yeh thats what I would have doneGood thinkinI cant really see their being any real feasable way around this, is does rely completely on the mail client the person is using. So the only real way is by using little tricks such as the image example Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117345 Share on other sites More sharing options...
3s2ng Posted October 31, 2006 Author Share Posted October 31, 2006 Thanks mjdamato. That make sense. Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117352 Share on other sites More sharing options...
Cep Posted October 31, 2006 Share Posted October 31, 2006 Of course that doesn't help if your clients dont except anything but plain text emails as well, so the answer is still no you couldnt track every single email, just a few and in the end if the results your getting arent accurate, whats the point :D Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117353 Share on other sites More sharing options...
3s2ng Posted October 31, 2006 Author Share Posted October 31, 2006 Yah. Thanks Cep. Its clear now. Quote Link to comment https://forums.phpfreaks.com/topic/25678-track-open-email/#findComment-117442 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.