Ok I wrote this function to handle emails sending lost passwords. However when I call this function from my "functions" page (using <?php include("functions.php"); ?>) I get the foillowing error:
Parse error: parse error, unexpected T_VARIABLE in .....
and this one:
Fatal error: Call to undefined function: sendsomemail() in .....
Here is my function:
function sendsomemail ($name, $email, $recipname, $recipemail, $mymessage, $mysubject)
{
$myname = $name
$myemail = $email;
$contactname = $recipname;
$contactemail = $recipemail;
$message = $mymessage;
$subject = $mysubject;
$headers. = "MIME-Version: 1.0\r\n";
$headers. = "Content-type: text/html; charset=iso-8859-1\r\n";
$headers. = "From: ".$myname."<".$myemail.">\r\n";
$headers. = "To: ".$contactname."<".$contactemail.">\r\n";
$headers. = "Reply-To: ".$myname."<$myreplyemail>\r\n";
$headers. = "X-Priority: 1\r\n";
$headers. = "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
mail($contactemail, $subject, $message, $headers);
}
And here is my line calling up the function:
sendsomemail ("Webmaster", "webmaster@myemail.net", "website member", "jack@jack.com", "thank you for your interest blah blah blah", "FYI");
Any help would be appreciated.