โดย Kun Chakun » 15/03/2017 5:30 pm
เมล์มันไม่เข้า outlook อะครับ แต่ถ้าเปิดในเว็บจะเข้าครับแต่ไม่เข้า inbox มันไปอยู่ในถังขยะครับ
ส่วนค่าของ smtp บริษัท ผมไปดูเครื่องของคนที่ config ด้วย outlook
pop = pop-mail.outlook.com
smtp = smtp-mail.outlook.com
server ขาออก smtp 587 ผมลองเอาค่าพวกนี้ไปใส่ก็ยังส่งไม่ได้เลยครับ
<?php
include("PHPMailer/class.phpmailer.php");
include("PHPMailer/class.smtp.php");
$mail = new PHPMailer;
$mail->CharSet = "utf-8";
$mail->SMTPSecure ='sftp';
$mail->Host ="mail.siamnavakam.com";
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->Username ='
[email protected]';
$mail->Password = 'xxxxxxx';
$mail->SetFrom('
***@***.com');
$mail->FromName = $title;
$mail->Subject = $subject;
$mail->Body ="Name :" .$title." <hr> <br> Subject :" .$subject. " <hr> <br> Email : " .$tel." <hr> <br> Detail : " .$detail; // Huh?Huh?Huh?Huh?Huh?Huh???
$mail->AltBody ="Name : " .$title." <hr> <br> Subject : " .$subject. " <hr> <br> Email : " .$tel." <hr> <br> Detail : " .$detail; // Huh?Huh?Huh?Huh?Huh?Huh???
$mail->AddAddress( '
[email protected]');
if (empty($_POST["title"]) && empty($_POST["txt_subj"]) && empty($_POST["txt_tel"]) && empty($_POST["area_detail"]) )
{
echo "";
}
else
{
if (!$mail->Send()) {
echo "";
}
else
{
echo "<script> alert(' SEND E-mail '); window.location = 'sent.php'; </script>"; //?Huh?Huh?Huh? mailFrom.html
}
}
?>
เมล์มันไม่เข้า outlook อะครับ แต่ถ้าเปิดในเว็บจะเข้าครับแต่ไม่เข้า inbox มันไปอยู่ในถังขยะครับ
ส่วนค่าของ smtp บริษัท ผมไปดูเครื่องของคนที่ config ด้วย outlook
pop = pop-mail.outlook.com
smtp = smtp-mail.outlook.com
server ขาออก smtp 587 ผมลองเอาค่าพวกนี้ไปใส่ก็ยังส่งไม่ได้เลยครับ
<?php
include("PHPMailer/class.phpmailer.php");
include("PHPMailer/class.smtp.php");
$mail = new PHPMailer;
$mail->CharSet = "utf-8";
$mail->SMTPSecure ='sftp';
$mail->Host ="mail.siamnavakam.com";
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->Username ='
[email protected]';
$mail->Password = 'xxxxxxx';
$mail->SetFrom('***@***.com');
$mail->FromName = $title;
$mail->Subject = $subject;
$mail->Body ="Name :" .$title." <hr> <br> Subject :" .$subject. " <hr> <br> Email : " .$tel." <hr> <br> Detail : " .$detail; // Huh?Huh?Huh?Huh?Huh?Huh???
$mail->AltBody ="Name : " .$title." <hr> <br> Subject : " .$subject. " <hr> <br> Email : " .$tel." <hr> <br> Detail : " .$detail; // Huh?Huh?Huh?Huh?Huh?Huh???
$mail->AddAddress( '
[email protected]');
if (empty($_POST["title"]) && empty($_POST["txt_subj"]) && empty($_POST["txt_tel"]) && empty($_POST["area_detail"]) )
{
echo "";
}
else
{
if (!$mail->Send()) {
echo "";
}
else
{
echo "<script> alert(' SEND E-mail '); window.location = 'sent.php'; </script>"; //?Huh?Huh?Huh? mailFrom.html
}
}
?>