Hi all,
I'm a total noob with PHP (i'm usually a javascript and html coder) and i am having some trouble with this block of code:
$fname =$_POST["firstname"];
$sname =$_POST["lastname"];
$comp =$_POST["company"];
$subject="{$fname} {$sname} has requested that you send them a CV.";
$message="{$fname} {$sname} of {$comp} has requested that you send a copy of your CV to {$email}.";
$headers = 'From: me@mysite.net' . "\n" .
$to='test@myemail.com';
print "{$message}";
print "{$subject}";
print "{$to}";
mail($to,$subject,$message,$headers);
This is not sending an email no matter what I try. is there a problem with the code or is it a problem with my apache server? P.S. i have verified that all information is being carried from forms using POST, with the print functions. I am not getting any errors (such as internal server errors with this code).
Any help with this would be much appreciated.


