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 Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/ 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\" <[email protected]>\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). Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/#findComment-990934 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.... Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/#findComment-990944 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... Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/#findComment-990947 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. Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/#findComment-990950 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... Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/#findComment-990960 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. Link to comment https://forums.phpfreaks.com/topic/187698-is-user-opened-the-email/#findComment-991617 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.