EmailTrack is a simple PHP class that outputs a 'ghost' image/tracking-pixel then uses PDO & SQLite to track whether or not an email has been seen.
Working Demo: http://tyrexi.us/EmailTrack
-
Requires
PHP 5.3+
&PDO_SQLITE
driver -
Full instructions and examples are located in the
examples
folder. -
The class file resides in
src/blank.php
-
You may need to edit paths to the SQLite database/gif in the class settings.
Notes:
-
SQLite databases can pose a security risk, and may be downloaded with a direct link! Please take precautions to secure the file. You can so this with Apache
.htaccess
or by making the file hidden. -
Only the first access to the tracking image is recorded. Subsequent access to the same image will be ignored.
$message .= '<img src="/src/blank.php?log=true&subject='.urlencode($subject).'&email='.urlencode($to).'" alt="EmailTrack"/>';
Key | Value |
---|---|
?log | true |
&subject | urlencode($subject) |
urlencode($to) |
This project is licensed under the MIT LICENSE
If you would like to help make this software better, please follow our guidelines found in CONTRIBUTING.md ...and a special thank-you to our contributors!
- Homepage: http://heshka.com
- E-mail: [email protected]
- KeyBase: https://keybase.io/theshka