note 59214 deleted from function.mail by nlopess
| From: | nlopess@php.net | Date: | Tue, 29 Nov 2005 18:17:19 +0000 |
| Subject: | note 59214 deleted from function.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99310@lists.php.net to get a copy of this message | ||
Note Submitter: help email vs php5
----
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.