Discuss How to check if the email has been opened or not! in the PHP Development forum on Dev Shed. How to check if the email has been opened or not! PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Time spent in forums: 3 Weeks 3 Days 4 h 31 m 6 sec
Reputation Power: 134
How to check if the email has been opened or not!
Can someone please explaoin this? Thanks
(Excuse couldnt delete them! )
Php Script for Check Email open
How to check that send email is open by receiver or not If we send email use Php mail() function and want that you get information when receiver open that mail or want to keep record of open mail send in mass sending of mail using Php mail() function.
To do that we use following code.
$to=""; //email receiver id
$subj=""; // subject of mail
$msg=""; // message that send to receiver
Time spent in forums: 2 Weeks 5 Days 22 h 54 m 14 sec
Reputation Power: 1926
That's standard email tracking. It sets up a 1x1 pixels image to be displayed in the HTML email body. The URL for that image is a PHP script that records the details that are set up in the URL, then uses PHP's built-in image libraries to output a simple image to the browser (in this case the email client). It's basically the industry-standard and it used to almost everyone.
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
You could instead of a 1x1px
use an image (or images) that actually state something (so they are pretty much forced to enable images if they are curious). Although it's not very nice to track people this way without knowing it. It's forbidden in my country, Probably also in the rest of the EU.
Time spent in forums: 2 Months 2 Days 20 h 11 m 10 sec
Reputation Power: 7170
What do you recommend?
You can't track people who have images turned off (can't, as in, it is literally impossible). The image solution is really the only workable option.
You could instead of a 1x1px use an image (or images) that actually state something (so they are pretty much forced to enable images if they are curious).
The disadvantage of this is that if the person doesn't enable images they don't get the information at all, whereas if you send the information as text, at least if they don't enable images they still get the information.
Normally when you're sending emails of the type that use tracking pixels, you care more than the recipient does about whether or not they read the information.
It's forbidden in my country, Probably also in the rest of the EU.
It's not illegal in the US. OP is from Australia I think, I don't know about legality there, but my guess is it's not illegal. IIRC, it's only been illegal in the EU for a short time, and the EU tends to be more strict about that sort of stuff than other places.