Hi Im new to this mail function. I have an html page with textboxes, comboboxes and textarea...i've d named them all and created this php sendmail.php file to send all the data. The only thing is when i click on submit I get this error:
My php code is this:
Im not sure if that is how u set up the data...i'ved searched some tutorials and it just shows the $email and $message variables. All the names are correct, my php.ini settings are as follows:
with the other settings not active.
I'll appreciate any input on this matter...
Code:
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\sendmail.php on line 12
Code:
<?php
$Companies = $_REQUEST['Companies'] ;
$FirstName = $_REQUEST['FirstName'] ;
$LastName = $_REQUEST['LastName'] ;
$District = $_REQUEST['District'] ;
$email = $_REQUEST['email'] ;
$phone = $_REQUEST['phone'] ;
$Issues = $_REQUEST['Issues'] ;
$message = $_REQUEST['message']
mail( "gmedrano@bowen.bz", "Feedback Form Results",
"$Companies\n $message\n",
"From: $FirstName <$email>" );
header( "Location: http://localhost/itsuccess.html" );
?>
Code:
SMTP = localhost smtp_port = 25
I'll appreciate any input on this matter...
Comment