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

การตั้งค่า 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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

(แก้ปัญหา) Hotmail อีเมล์ตกถังขยะ (Junkmail)

วิธีแก้ ป้องกันอีเมล์ตกถังขยะ (Junkmail, Spam box) สำหรับผู้ใช้อีเมล์ Hotmail, Windows live,...

การย้ายอีเมล์ด้วย IMAP Copy

  วิธีการย้ายอีเมล์ จากอีกที่หนึ่ง ไปยังอีกที่หนึ่ง โดยไม่จำเป็นต้องใช้ Control panel...

วิธีการตั้งค่าการรับอีเมลลล์(e-mail)จากโฮสนครไอเทค

You can select the Mail Preferences for yourself and decide as to which mails you want to receive...

วิธีลบ E-Mail เก่าออกจากกล่อง Inbox

วิธีลบ E-Mail เก่าออกจากกล่อง Inbox คุณสามารถลบ E-mail เก่าออกจากกล่อง Inbox ได้ผ่านทาง...

หมดปัญหาส่งเมลจาก WordPress ด้วย Postman SMTP

หลายครั้งที่การส่งเมลจากเว็บ WordPress นั้นมักจะมีปัญหาส่งไม่ออก เนื่องจากโดนที่โฮ้สต์บล็อกSMTP...