note 59214 added to function.mail

From: Date: Tue, 29 Nov 2005 18:01:42 +0000
Subject: note 59214 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-99306@lists.php.net to get a copy of this message
I have just installed php5 and mysql5, I found out that most of the codes I used to write b4 with php3 or 4 dosen't work with php5. Now I am trying to send email to my account, its useless, nothings work. This is my code, I hope someone can help me and clarify this. thank you. <?php $name = $_POST['name']; $email = $_POST['email']; $feedback = $_POST['feedback']; $toaddress = 'somebody@yahoo.com'; $subject = 'Feedback from some website'; $mailcontent = 'Customer name: '.$name."\n" .'Customer email: '.$email."\n" ."Customer comments: \n".$feedback."\n"; $fromaddress = 'From: webserver@example.com'; mail($toaddress, $subject, $mailcontent, $fromaddress); ?> I don't know if its my php.ini that have something to do with it, or something dosent work well with my codes. ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59214 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59214&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59214&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99306) next »