note 92738 added to book.mail

From: Date: Thu, 06 Aug 2009 17:39:31 +0000
Subject: note 92738 added to book.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-159158@lists.php.net to get a copy of this message
I use this script to test webapps using mail with this little php script saved as /usr/sbin/sendmail : #!/usr/bin/php <?php //==================================================== // Program : Fake send mail // Author : pouletfou at gmail // Description : save this file as /usr/sbin/sendmail // and you can test your PHP applications using mail // by looking at the /tmp/fakesendmail.log files. //==================================================== define('LOGFILE','/tmp/fakesendmail.log'); $log = fopen (LOGFILE,'a+'); fwrite($log,"\n".implode(' ',$argv). " called on : ".date('Y-m-d H:i:s')."\n"); fwrite($log,file_get_contents("php://stdin")); fwrite($log, "\n===========================================================\n"); fclose($log); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 24.203.225.73 ---- Manual Page -- http://www.php.net/manual/en/book.mail.php Edit -- https://master.php.net/note/edit/92738 Del: integrated -- https://master.php.net/note/delete/92738/integrated Del: useless -- https://master.php.net/note/delete/92738/useless Del: bad code -- https://master.php.net/note/delete/92738/bad+code Del: spam -- https://master.php.net/note/delete/92738/spam Del: non-english -- https://master.php.net/note/delete/92738/non-english Del: in docs -- https://master.php.net/note/delete/92738/in+docs Del: other reasons-- https://master.php.net/note/delete/92738 Reject -- https://master.php.net/note/reject/92738 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159158) next »