$mail = new PHPMailer();
$mail->IsSMTP();
$mail->CharSet = 'utf-8';
$mail->SMTPAuth = true;
$mail->Port = 465;
$mail->SMTPDebug = 1;
$mail->SMTPSecure = 'tls';
$mail->Host = 'HOST';
$mail->Username = 'USERNAME';
$mail->Password = "PASS";
$mail->Mailer = 'smtp';
$mail->SetFrom("gonderen@mail.com", 'İSİM');
$mail->Subject = "İletişim Formu";
$mail->WordWrap = 50;
$mail->AltBody = 'Bu mesaji gorebilmek icin HTML destekleyen bir elektronik posta okuyucusu kullanmalısınız!';
$mail->Body = "Mesaj" ;
$mail->IsHTML(true);
$mail->AddAddress("abdullahglbz@gmail.com");
if($mail->Send()){
echo "Gönderildi";
}
else{
echo $mail->ErrorInfo;
}



Gmaille değil outlook bir mail'i sender yapıyoruz