google workspace send mail

SMTP

透過SMTP用程式寄google workspace郵件

  1. 使用者登入並開兩步驗證


    Screen Shot 2020-11-20 at 11.56.40.png
  2. 新增應用程式密碼

host: 'smtp.gmail.com',
port: 587,
username: '[email protected]',
password: '應用程式密碼',
from: '[email protected]'

SMTP轉發

透過google寄任意寄件地址,類似google版的SES。Google workspace => Application => Gmail => Advanced Settings => SMTP Relay

Screen Shot 2020-11-20 at 11.52.24.png

允許的寄件位置:

  1. 僅限我的網域中已註冊的Apps使用者(google workspace user)
host: 'smtp-relay.gmail.com',
port: 587,
username: '[email protected]',
password: 'password',
from: '[email protected]'
  1. 僅限我的網域中的位置(同網域即可)
host: 'smtp-relay.gmail.com',
port: 587,
username: '[email protected]',
password: 'password',
from: '[email protected]'
  1. 不限位置(寄件地址隨你key)
host: 'smtp-relay.gmail.com',
port: 587,
username: '[email protected]',
password: 'password',
from: '[email protected]'

你可能感兴趣的:(google workspace send mail)