dhvani Posted January 8, 2010 Share Posted January 8, 2010 Hello all, I have one problem. I am sending some mails to users through mail() function. Now i wants to know if the user opened up the mail or not? I had seen some tools where i get this information. But i wants to know that how they track that email is opened or not? Please tell me if any one knows? Thanks Dhvani Quote Link to comment Share on other sites More sharing options...
cags Posted January 8, 2010 Share Posted January 8, 2010 To the best of my knowledge the closest you might get is adding the following header to the e-mail... $headers .= "Disposition-Notification-To: \"Your Name\" <your@email.com>\r\n"; But I believe this will only work if the mail client they use supports the feature and if the receiver chooses to send it (it pops up with a request, they can click yes or no). Quote Link to comment Share on other sites More sharing options...
dhvani Posted January 8, 2010 Author Share Posted January 8, 2010 Thanks but i dont want email notification. I wants to get in my database. If you check some news letter modules you get that they view statistics in which they show us that user has opened our mail or not. And if opened than how many times? I wants that.... Quote Link to comment Share on other sites More sharing options...
dgoosens Posted January 8, 2010 Share Posted January 8, 2010 never had to do this... but I guess you can call a script within an <img ... /> tag... just make sure you return an image (1 px transparent for instance)... don't know, seems logic, for security reasons. and... in the src attribute image you could append a ?userId=WHATEVER but there have to be smarter ways to get this done... Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 8, 2010 Share Posted January 8, 2010 never had to do this... but I guess you can call a script within an <img ... /> tag... just make sure you return an image (1 px transparent for instance)... don't know, seems logic, for security reasons. and... in the src attribute image you could append a ?userId=WHATEVER but there have to be smarter ways to get this done... It's commonly used by spammers to detect which e-mail addresses are actually being read. That's why Thunderbird and other mail client by default block all images pulled from external sources. Quote Link to comment Share on other sites More sharing options...
dgoosens Posted January 8, 2010 Share Posted January 8, 2010 It's commonly used by spammers to detect which e-mail addresses are actually being read. That's why Thunderbird and other mail client by default block all images pulled from external sources. true... and obvious. but as far as I can see, it's the only way to call an external script... and... the mail clients do block the images but the user can then allow them to be displayed... So just make a nice signature, I'd say... Quote Link to comment Share on other sites More sharing options...
dhvani Posted January 9, 2010 Author Share Posted January 9, 2010 Hey thanks all, I also got this solution when i see the source code of the mail i got from tool. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.