Hello
I have Mail Script When user Going to send Email they will Rediercted to Mail_now.php to complate the Sent.
but i have moved the mail_now.php to includes know when i try to send email it give me this error .
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/pruser01/public_html/modules/msn/includes/mail_now.php on line 10
Here is the code from mail_now.php
<?php
//========================== LOG =========================
$include_path ="/home/pruser01/public_html/modules/msn/includes/";
$fl = fopen($include_path.'invite_logs/invite_log.txt','a+');
//========= Invitation Logs ============================
$invite_contents="/Hey\";
$invite_list = $_POST['chkItem'];
$invite_count = count($invite_list);
for ($i=0; $i<$invite_count; $i++)
{
echo "<b> Inviting :</b>".$invite_list[$i]."<BR>";
mail($invite_list[$i],'Mail from !!',$invite_contents);
// Save infor of invitation mail to log file
$log_contents = "Emai: $invite_list[$i], Time: ".date('m/d/Y - H:i:s',time())."\n";
fwrite($fl,$log_contents, strlen($log_contents));
//======================= EOF logs
}
fclose($fl);
chmod($include_path."invite_logs/invite_log.txt",0775);
echo " Mail Completed..............!!!!";
?>
any idea why this error ?