Posted By

skywalker on 04/30/08


Tagged

header mail report receive


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

basicmagic
dryliketoast
mmccrack
AlastairDewar


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


 / Published in: PHP
 

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

  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
Posted By: Frank on May 3, 2008

Don't know about the iframe, you can better use an image i think.

You need to login to post a comment.