note 63602 added to ref.mail

From: Date: Sat, 25 Mar 2006 02:38:27 +0000
Subject: note 63602 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-106559@lists.php.net to get a copy of this message
Hey I recently set up the bare-minimum for the mail() tag. (I have just started to learn PHP) My friend who at least acts like he knows PHP says that the code is not stable because somebody could issue a UNIX Deleate command and screw up everything. The code is below: An email has been sent to the Director of Human Resources. Thank you for apply, you will hear back in a bit. <?php $body = "Application Alert!\n\n"; foreach($_POST as $field => $value) { $body .= sprintf("%s = %s\n", $field, $value); } mail("theflea912@gmail.com", "APPLYING PILOT!", $body, 'From: "APPLY" <apply@qantasva.com'); ?> ---- Server IP: 216.194.113.175 Probable Submitter: 68.3.72.175 ---- X-Spam-Status: No, hits=3.6 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, MAILTO_TO_SPAM_ADDR autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/note/edit/63602 Del: integrated -- http://master.php.net/note/delete/63602/integrated Del: useless -- http://master.php.net/note/delete/63602/useless Del: bad code -- http://master.php.net/note/delete/63602/bad+code Del: spam -- http://master.php.net/note/delete/63602/spam Del: non-english -- http://master.php.net/note/delete/63602/non-english Del: in docs -- http://master.php.net/note/delete/63602/in+docs Del: other reasons-- http://master.php.net/note/delete/63602 Reject -- http://master.php.net/note/reject/63602 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106559) next »