Is the mail I sent, read or unread by the receiver.


/ Published in: PHP
Save to your folder(s)

Is the mail I sent, read or unread by the receiver.


Copy this code and paste it in your HTML
  1. Add extra line to header section.
  2.  
  3. PHP Code:
  4. $headers .= "Disposition-Notification-To: Your Name<[email protected]>\n";
  5.  
  6. or send/include an extra line which is <iframe></iframe>
  7.  
  8. PHP Codu:
  9. <iframe name="control" src="http://www.yoursite.com/logger.php?process=log&mail=$mail" style="display:none"></iframe>
  10.  
  11. -------------------------
  12.  
  13. logger.php
  14. PHP Code:
  15. <?
  16. if($_GET['process'] =="log") {
  17. $mail = $_GET['mail'];
  18. $time = date("d:m:y");
  19. $fp = fopen("log.txt","w+");
  20. fwrite($fp,"$mail - read the mail | time : $time \n");
  21. fclose($fp);
  22. }
  23. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.