South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Hi,
I am writing an application that makes use of the phpmailer library to send out emails. I want to track if the email has been opened. Could someone point me to a tutorial on how to do this?
dabouncer has the solution for your problem, but tel me why you wanna send email using the php mailer? Your email is probably gonna get blocked by every spam filter out there.
In layman's terms = a TrojanMake the mail into a html mail, make a small iframe somewhere and add a refresh script in the iframe which refreshes to a url u supply so you can see who reads the mail. ie : your-domian.com?user=someone&read=1 or something of that sorts.I guess you could achieve something like this by using a javascript code aswell, maybe even an onmouseover event to trigger a specific url.
Images are not a good way of doing it as Microsoft outlook's default is to not download images unless instructed. Go the iframe route - it's a lot more accurate. You don't even need the "refresh script" inside the iframe, all you need is the src parameter to be applied.Erm...phpmailer is pretty good. So long as you fill in a valid "from email address" there is no problem with spam filters.
I got around the issue a slightly different way. I embedded a hidden image in the HTML email which links to a PHP file. The PHP file does the basic tracking