|
|
|
SMTP Error: Could not authenticate. ไม่ทราบว่าติดปัญหาตรงไหน รบกวนผู้รู้ช่วยดูให้ด้วยคะ |
|
|
|
|
|
|
|
เปลี่ยนไปใช้ของ hotmail ได้แล้วคะ
อ้างอิง http://phpmailer.worxware.com/index.php?pg=tip_srvrs
Code (PHP)
<?php
require_once('class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsHTML(true);
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls"; // sets the prefix to the servier
$mail->Host = "smtp.live.com"; // sets hotmail as the SMTP server
$mail->Port = 25; // set the SMTP port for the hotmail server
$mail->Username = "[email protected]"; // hotmail username
$mail->Password = "password"; // hotmail password
$mail->From = "[email protected]"; // "[email protected]";
//$mail->AddReplyTo = "[email protected]"; // Reply
$mail->FromName = "Your Name"; // set from Name
$mail->Subject = "Test sending mail.";
$mail->Body = "My Body & <b>My Description</b>";
$mail->AddAddress("[email protected]", "Mr.Adisorn Boonsong"); // to Address
//$mail->AddAttachment("thaicreate/myfile.zip");
//$mail->AddAttachment("thaicreate/myfile2.zip");
//$mail->AddCC("[email protected]", "Mr.Member ShotDev"); //CC
//$mail->AddBCC("[email protected]", "Mr.Member ShotDev"); //CC
$mail->set('X-Priority', '1'); //Priority 1 = High, 3 = Normal, 5 = low
$mail->Send();
?>
|
ประวัติการแก้ไข 2016-03-25 10:14:30 2016-03-25 10:41:40
|
|
|
|
Date :
2016-03-25 10:13:35 |
By :
Nan1999 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|