GS-Magento
GS-Magento

Reputation: 328

how to track the send email has read or deleted

Am sending mail to users via phpmailer, My requirement is to keep track of sent mail, (whomever opened mail, whomever deleted). I have mysql table to keep the track of sent mail. I need to update the flag mail_opened = 1 when the mail is opened and need to update the flag mail_deleted = 1.

Googled several times, still not getting any idea. can some one help me to achieve this..

sorry for my bad English..

Upvotes: 0

Views: 865

Answers (2)

GiamPy
GiamPy

Reputation: 3560

There are multiple ways at doing this.

You could use a SaaS such as SendGrid or MailChimp that support such feature already, or you could inject an HTTP request inside an image and process it.

For example: <img src="http://domain.com/image.png?emailId={$emailId}&action=open">

You can found about injecting the request here.

Upvotes: 1

Jonas Wilms
Jonas Wilms

Reputation: 138247

Spamers found multiple solutions for this. Tracking people secretly is not nice but possible. The most common way is including an image into your email that is load from your server.

<img src="http://yourserver.com/track?id">

The image can be 1px * 1px and white, so the normal user wouldnt notice.

Upvotes: 0

Related Questions