I have problems with sending email with phpmailer in hotmail accounts. There are some answers here in stack overflow but none of them can solve my problem. I have the same smtp user and from, i do not include 'spam phrases' etc.. here is the code:
require 'phpmailer/PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host = 'localhost';
$mail->SMTPAuth = true;
$mail->Username = 'xx@kk.com'; // SMTP username
$mail->Password = 'yy'; // SMTP password
$mail->setFrom("xx@kk.com");
$mail->addAddress(zz);
$mail->isHTML(true);
$mail->Subject = "sub";
$mail->Body = "<!DOCTYPE html>";
$mail->Body .= "<head></head>";
$mail->Body .= "<body>";
$mail->Body .= "<p style='font-size:22px; color:black;'>Thank you for using the <span style='color:rgb(29,91,104)'>Model</span>. Your code is:</p>";
$mail->Body .= "<p style='font-size:19px; color:black;'>FB-".$x."X".$z."X".$y1."X".$y2."-".$kind."-H".$y3."</p>";
$mail->Body .= "<p style='font-size:19px; color:black;'>ForenBox: ". $kind2;
$mail->Body .= "<br>Long sides: ".$x."mm";
$mail->Body .= "<br>Height of Long sides: ".$y1."mm";
$mail->Body .= "<br>Short sides: ".$z."mm";
$mail->Body .= "<br>Height of Short sides: ".$y2."mm";
$mail->Body .= "<br>Height of Corners: ".$y3."mm</p>";
$mail->Body .= "</body>";
$mail->Body .= "</html>";
$mail->send();
Thanks!