Skip to content

Gmail IMAP credentials#

ทำตามขั้นตอนเหล่านี้เพื่อกำหนดค่า IMAP credentials ด้วยบัญชี Gmail

Prerequisites#

ในการทำตามคำแนะนำเหล่านี้ คุณต้องทำสิ่งต่อไปนี้ก่อน:

  1. Enable 2-step Verification บนบัญชี Gmail ของคุณ
  2. Generate an app password

Enable 2-step Verification#

วิธีเปิดใช้งานการยืนยันแบบ 2 ขั้นตอน (2-step Verification):

  1. ลงชื่อเข้าใช้ Google Account ของคุณ
  2. เลือก Security จากแถบนำทางด้านซ้าย
  3. ใต้หัวข้อ How you sign in to Google เลือก 2-Step Verification
    • หากเปิดใช้งาน 2-Step Verification อยู่แล้ว ให้ข้ามไปที่ส่วนถัดไป
  4. เลือก Get started
  5. ทำตามขั้นตอนบนหน้าจอเพื่อกำหนดค่า 2-Step Verification

โปรดดูข้อมูลเพิ่มเติมที่ Turn on 2-step Verification

หากคุณไม่สามารถเปิดใช้งาน 2-step Verification ได้ โปรดตรวจสอบกับผู้ดูแลระบบอีเมลของคุณ

Generate an app password#

วิธีสร้าง app password:

  1. ในบัญชี Google ของคุณ ไปที่ App passwords
  2. ป้อน App name สำหรับ app password ใหม่ของคุณ เช่น n8n credential
  3. เลือก Create
  4. คัดลอก app password ที่สร้างขึ้น คุณจะใช้รหัสผ่านนี้ใน n8n credential ของคุณ

โปรดดูข้อมูลเพิ่มเติมที่เอกสาร Sign in with app passwords documentation ของ Google

Set up the credential#

ในการตั้งค่า IMAP credential ด้วยบัญชี Gmail ให้ใช้การตั้งค่าเหล่านี้:

  1. ป้อนที่อยู่อีเมล Gmail ของคุณเป็น User
  2. ป้อน app password ที่คุณสร้างขึ้นด้านบนเป็น Password
  3. ป้อน imap.gmail.com เป็น Host
  4. สำหรับ Port ให้คงหมายเลข port เริ่มต้นไว้ที่ 993 ตรวจสอบกับผู้ดูแลระบบอีเมลของคุณหาก port นี้ใช้งานไม่ได้
  5. เปิดใช้งาน toggle SSL/TLS
  6. ตรวจสอบกับผู้ดูแลระบบอีเมลของคุณว่าควร Allow Self-Signed Certificates หรือไม่

อ้างอิง Add Gmail to another client สำหรับข้อมูลเพิ่มเติม คุณอาจต้อง Enable IMAP หากคุณใช้บัญชี Google ส่วนตัวก่อนเดือนมิถุนายน 2024