require("class.phpmailer.php");
$mail = new PHPMailer();
$message = "
Talep no: '.$TalepID.' Nolu Teklif Talebi güncellendi!
Parabirimi:$parabirimi
Açiklama:$aciklama
Adres:$adres
deneme:$ss ";
$TalepID = $_POST['TalepID'];
$parabirimi =$_POST['parabirim'];
$aciklama =$_POST['aciklama'];
$ss ="sss";
$mail->IsSMTP(); // send via SMTP
$mail->Host = "xxxxxxxxxx"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "xxxxxxxx"; // SMTP username
$mail->Password = "xxxxxxxxx"; // SMTP password
$mail->CharSet = "utf-8";
$mail->Encoding = "base64";
$mail->isHTML(true);
$mail->From = "xxxxxxx";
$mail->Fromname = "giden ismi";
$mail->Subject = " $TalepID nolu talep";
$mailler=$_POST["email"];
//kontrol edelim
if(is_array($mailler)){
foreach($mailler as $mail_adresi){
$mail->AddBCC($mail_adresi,'');
}
}
$mail->Body = $message;
$mail->AltBody = $message;
if(!$mail->Send())
{
echo "Mesaj Gönderilemedi ";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Mesaj Gönderildi";