075-845-490 | 097-165-2449
Line ID: @hostnakhonitech
🎉 โปรโมชั่นพิเศษ! ลด 10% สำหรับลูกค้าใหม่
NakhoniTech
075-845-490
support@NakhoniTech.com

การตั้งค่า SMTP Server Gmail และ Mail server Print

  • 0

การตั้งค่า SMTP Server Gmail และ Mail server

สำหรับลูกค้าที่ใช้ phpmail ส่ง หรือ ใช้ smtp ของ server ส่งแล้วมีปัญหา

แนะนำให้ลูกค้าใช้ smtp ของ gmail หรือ g-suite เนื่องจากมี header mail ที่มีความน่าเชื่อถือกว่า ทำให้อีเมลล์ที่ส่งไปยังปลายทางไม่ตก Junk mail ด้วย


Mailer: Gmail SMTP Server (ฟรี ส่งได้ 500ฉบับ/วัน)
Mail From: <your_user_id>@gmail.com
SMTP Auth: Yes
SMTP Security: tls
SMTP Port: 587
SMTP User: <your_user_id>@gmail.com
SMTP Password: <your_password>
SMTP Host: smtp.gmail.com

-----------------------------------------------
Mailer: G-suite SMTP Server ( 3USD/เดือน ส่งได้ 2000ฉบับ/วัน)
Mail From: <your_user_id>@yourdomain.com
SMTP Auth: Yes
SMTP Security: tls
SMTP Port: 587
SMTP User: <your_user_id>@yourdomain.com
SMTP Password: <your_password>
SMTP Host: smtp.gmail.com

ข้อมูลเพิ่มเติม>> https://support.google.com/a/answer/176600?hl=th

หากยังติดปัญหาการเชื่อมต่อ smtp ทำตามวิธีด้านล่าง
1.ลิงค์สำหรับเปิดการอนุญาตให้ใช้ smtp google
http://www.google.com/accounts/DisplayUnlockCaptcha


2. ปิดการยืนยันแบบ 2 ขั้นตอน
https://support.google.com/accounts/answer/1064203?hl=th


3. เปิด อนุญาตให้แอปที่มีความปลอดภัยน้อยเข้าถึงบัญชีของคุณ
https://myaccount.google.com/lesssecureapps

 

-------------------------------------------------------------------------
สำหรับกรณีที่ลูกค้าใช้งาน smtp ของ server (ไม่แนะนำ เนื่องจากมีการลิมิต และ อีเมลล์มีโอกาศลง Junk mail )
Mailer: Mail server SMTP (ฟรี ส่งได้ 50 ฉบับ/วัน)
Mail From: <your_user_id>@yourdomain.com
SMTP Security: none หรือ tls
SMTP Port: 587 หรือ 25
SMTP User: <your_user_id>@yourdomain.com
SMTP Password: <your_password>
SMTP Host: mail.yourdomain.com


ขอบคุณสคริป smtp จาก
http://www.thaicreate.com/php/php-send-email-smtp-gmail-account.html


Was this answer helpful?

« Back