including exteal php file into php mailer body

خرید بک لینک
     if($_POST['mail'])
    {
 $to_name = $rows['useame'];
$to = $rows['email'];
$subject = "Invoice";



   $from_name = "abc.com";
 $from = "[email protected]";

 // phpMailer
 require_once('phpmailer/PHPMailerAutoload.php');
 $mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host = "smtp.gmail.com"; //enable php socks to make SSL it working
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';    
$mail->Useame = "[email protected]";
$mail->Password = "password";

$mail->FromName = $from_name;
$mail->From = $from;
$mail->AddAddress($to, $to_name);
$mail->Subject = $subject;
$mail->Body = include'invoice.php';  
$mail->IsHTML(true);    
$result = $mail->Send();
}
?>

Rather showing me php page its display nothing in mail !

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 192 تاريخ: دوشنبه 10 خرداد 1395 ساعت: 19:40

صفحه بندی