Solved

In PHP mail, how can I track which mail is opened and which is deleted?

Posted on 2013-05-30
6
326 Views
Last Modified: 2013-05-30
Hi Guys,
My PHP mail functions just fine when sending out numerous messages. How can I determine if mail is opened or deleted?
I'd appreciate the help,
Sas
0
Comment
Question by:sasnaktiv
6 Comments
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 150 total points
Comment Utility
You can't.  The email is out of your hands and control the second it is sent.  You could try some hacks like sticking an image in that has to be downloaded from your site to be viewed, but it is unreliable because user settings may not allow images, and mail with an external reference may be blocked or dumped in the spam folder.

Cd&
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 350 total points
Comment Utility
You cannot know with 100% certainty.  I'll discuss the risks below.

Most tracking applications use a "tracking pixel" image in the HTML version of the message.  This "pixel" is not really an image, but instead it is a link to a PHP script.  The GET argument to the script is the identity of the client you want to track.  When the request is made to the tracking pixel script, the script takes the client identity and writes it into a data base.

Obviously the client identity can be very elaborate.  It can include information about the message itself, when the message was sent, etc.  With some clever design you can track all kinds of things about the email including whether, if it was forwarded, someone else opened it.

Risks:  Client turns off HTML email.  Client email program does not allow images.  Client email program sees program files in image tags and assumes the message is spam.  Client reads the text of the message but does not display the images.  Etc.  There is no way to know if the message was deleted because all of these alternatives produce the same indication -- there was no hit on the tracking pixel.


The only really secure way to know if a client read a message, is to include a clickable link in the message and look for the clicks.  This article describes the technique.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3939-Registration-and-Email-Confirmation-in-PHP.html

That's about it.  A very high "open rate" among opt-in clients is 25% or to put it another way, not all that many people read automated email messages.  And none of them care anything about your desire to track them.

Best of luck with it, ~Ray
0
 
LVL 1

Author Comment

by:sasnaktiv
Comment Utility
Thanks Guys,
Yes I'm familiar with the clickable link & I'm using it, but it only tells me if the recipient clicks on it. My personal Thunderbird email client actually tells me if a message was read or deleted without any links in the messages. So apparently, there is another way. How do they do it?
Sas
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
They have to have notifications set on on their side - this is optional and can be switched off so it is no guarantee.

There are obviously privacy issues here which need to be addressed - you cannot force an acknowlegement of a mail read / received.

Think of it a courtesy the recipient extends to you - not a right you have.
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
How do they do it?
Maybe they just look like they are doing it.  Email is a complicated mess, without any accountability for the communications.  Microsoft has built some tools into Outlook - things like "read receipts" and the like, but for the most part, unless you control the email reader programs that your recipients are using, you do not control enough to get a dependable indicator of who read, who deleted, who ignored, etc.  What you can know is whether the tracking pixel script was activated.  Your "read rate" is almost certainly at least that high.
0
 
LVL 1

Author Closing Comment

by:sasnaktiv
Comment Utility
Thanks for all the help.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now