|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2015-06-19 (4 years ago) ||Not enough user ratings||Total: 623 ||All time: 4,982 This week: 341|
This class can record opened email messages using tracking pixels.
It can serve an image file that would be displayed in an email message when the user opens the message.
The class records each access to the tracking image in a SQLite database accessed using PDO.
It takes the current request parameters message tracking values that are stored in the database like the email address and the message subject.
Only the first access to the tracking image is recorded. Subsequent accesses to the same image will be ignored.
|One common way to track the users that receive and open mailing list messages is to put an image on the HTML part of the message that will be retrieved dynamically from the server.
This class can generate tracking images to put on mailing list messages and records the messages that are opened in a SQLite database.
This simple PHP class outputs a ghost image and uses PDO & SQLite to track whether or not an email has been seen.
- PHP 5.3+
- PDO_SQLITE driver
Wherever you send an email that needs to be tracked, we’ll just inject an image that ACTUALLY loads a PHP file on our server. The PHP class that is requested in the
<img... tag, takes
$_GET parameters, logs them in the SQLite database, then serves up an actual image.
$message .= '<img src="/src/blank.php?log=true&subject='.urlencode($subject).'&email='.urlencode($to).'" alt="EmailTrack"/>';
| Key | Value |
| ?log | true |
| &subject | urlencode($subject) |
| &email | urlencode($to) |
- Full instructions and examples are located in the
- The class file resides in
- You may need to edit paths to the SQLite database/gif in the class settings.
- 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.
Working Demo: http://tyrexi.us/EmailTrack
This work is licensed by The MIT License (MIT)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- Create a Fork of the main branch.
- Clone the repository
$ git clone http://github.com/yourusername/EmailTrack
- Add a connection to the repository.
$ git remote add origin http://github.com/theshka/EmailTrack
- Make changes to files.
git add and
git commit those changes
git push them back to github. These will go to your version of the repository.
- Submit a pull-request
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.