Gửi mail bằng PHPMailer-master từ tài khoản gmail, office 365

require __DIR__.’/PHPMailer-master/class.phpmailer.php’; require __DIR__.’/PHPMailer-master/class.smtp.php’; $this->mail = new PHPMailer(); $this->mail->IsSMTP(); // set mailer to use SMTP dùng tài khoản Office 365 $this->mail->Host =”smtp.office365.com”; // specify main and backup server $this->mail->Port = 587; // set the port to use $this->mail->SMTPAuth = true; // turn on SMTP authentication $this->mail->SMTPSecure = “tsl”; $this->mail->Username = “yourmail@yourdomain”;// your SMTP username or…