Skip to content

Gmail Send Email credentials#

ทำตามขั้นตอนเหล่านี้เพื่อกำหนดค่า Send Email 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#

เพื่อตั้งค่า Send Email credential ให้ใช้ Gmail:

  1. ป้อนที่อยู่อีเมล Gmail ของคุณเป็น User
  2. ป้อน app password ที่คุณสร้างขึ้นด้านบนเป็น Password
  3. ป้อน smtp.gmail.com เป็น Host
  4. สำหรับ Port:
    • คงค่าเริ่มต้น 465 สำหรับ SSL หรือหากคุณไม่แน่ใจว่าจะใช้อะไร
    • ป้อน 587 สำหรับ TLS
  5. เปิดใช้งาน toggle SSL/TLS

อ้างอิงการตั้งค่า Outgoing Mail (SMTP) Server ใน Read Gmail messages on other email clients using POP สำหรับข้อมูลเพิ่มเติม หากการตั้งค่าข้างต้นใช้ไม่ได้ผลสำหรับคุณ โปรดตรวจสอบกับผู้ดูแลระบบอีเมลของคุณ