problem code
| From: | Chris Ives | Date: | Sun, 01 Feb 2009 19:08:49 +0000 |
| Subject: | problem code | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-64621@lists.php.net to get a copy of this message | ||
What is wrong with this code?
$x_Message = $x_fname." ".$x_lname." ".$_practice." just registered for ".$x_nevent."Method of payment ".$x_payment." Email address is".$x_email." Telephone number".$x_tele. "Question is ".$x_qanda.";
$message = $x_Message;
$from = $x_email;
$to = "ncives@gmail.com";
$subject = "Panorama Registration";
$headers = "From: $from";
/* Now we are ready to send the email so we call php's mail() function
with the appropriate variables from above included in the brackets */
mail($to,$subject,$message,$headers);