I have been trying for AGES to get a mail script that sends stuff. It is basically supposed to be an annon. emailer. And I have tried many variations of scripts etc
<?php
$to = "$form_to_name <$form_to_email>"
$headers = "From: \"".addslashes($form_to_name)."\" <".$form_to_email.">\r\n";
$headers .= "Reply-To: ".$form_sender_email."\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-Mailer: PHP / ".phpversion()."\r\n";
mail( $to, $subject, $form_message, $headers ) or print "Error handling message. message not sent.";
?>
The email to <?=$form_to_name?> (<?=$form_to_email?>) Was send successfully.<br><br>
The message was: <?=$form_message?><br><br>
And the headers were: <?=$headers?>
I get the error:
Parse error: parse error, unexpected T_VARIABLE in /usr/local/psa/home/vhosts/tycooneden.com/httpdocs/annon_mail/send_process.php on line 3
It is prob. rlly simple... but, I would like to know
Cheers, Alex.