使用 Google SMTP 寄送電子郵件教學

by admin
0 comments
email, mail, hand-6370595.jpg

先前網站都是使用架站主機商的電子郵件帳戶來做為網站SMTP寄信的方式,但是突然有一天發現,只要用戶使使用Gmail信箱,總是無法收到信件,經過幾次溝通,總是無法順利解決,所以Google爬了一下文,也順利解決了,所以今天留下這篇文章記錄一下。原來使用Gmail帳號做為網站SMTP寄信是既安全、又不會被常規類為垃圾信件(當然用來寄垃圾廣告信件例外)。Google現已改用更為嚴謹的「應用程式密碼」,不能再用gmail本身的登入密碼來寄信。而且,在取得「應用程式密碼」之前,你必須先設定「兩段式驗證」,才會出現「應用程式密碼」的選項。下面跟著我們的教學步驟,一步一步設定。

 

步驟1:進入 Google 安全設定頁面

直接從這裡進入Google 安全設定頁面,點擊「兩步驟驗證」。
 

首先進入Google 帳號安全性設定 >>

 

步驟2:啟用「兩步驟驗證」

 

軟體部落

 

下一步…

 

軟體部落

 

下一步,驗證手機號碼

 

軟體部落

 

填入驗證碼

 

軟體部落

 

開始啟用兩步驟驗證

軟體部落
 
軟體部落

 

如果你迷路了,可以點這裡回到Google安全設定頁面。

https://myaccount.google.com/security

 

步驟3:設定「應用程式密碼」

 

軟體部落

 

下一步…

 

軟體部落

 

下一步…

 

軟體部落

 

最後,取得應用程式密碼,完成。

 

軟體部落

 

Google SMTP寄信 參數

 

SMTP主機: smtp.gmail.com
SMTP 埠號: 465
SMTP 安全模式: SSL/TLS
SMTP 認證:
SMTP 帳號: 你的gmail帳號
SMTP 密碼: google應用程式密碼

You may also like

Leave a Comment

Welcome to SoftBlog, a vibrant community dedicated to empowering developers, tech enthusiasts, and software professionals. Whether you’re a beginner or an experienced coder, we provide the resources, tools, and support you need to thrive in the ever-evolving world of software development.

Privacy Policy © Copyright 2007 – 2022 軟體部落 – 本站採用 Cloudways雲端代管主機

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.