SMTP – Video 2 – Create Gmail Credential

密碼是SIMULIVE

\"\"
Create Gmail Credential

这个视频老师教如何Create Gmail Credential,最重要的功能就是更加多的人去到你的网站注册同时你也到他们的资料

你会去到Gmail的API,你也会了解Gmail API的限制如果你滥用Google关掉不让你使用,你需要去制作自己ClientID 和Client Secret

基本常识 :What is the Google Cloud console?

The Google Cloud Console provides a web-based,
graphical user interface that you can use to manage your Google Cloud projects and resources.
When you use the Cloud Console, you either create a new project or choose an existing project,
and then use the resources that you create in the context of that project.

Create Gmail Credential

使用SMTP的功能连接到Gmail
通过6个步骤就能拿到gmail credential (Id) 和 secret key
在视频中,老师会讲解在设定过程中遇到的问题和解决的方法。

STEP BY STEP
HOW TO CRETA GMAIL CREDENTIAL


Step 1
1.1 在上一个视频我们来到了wpforms SMTP setup wizard的页面,点击Let\’s Get Started
1.2 选择Google/Gmail为你的SMTP Mailer,点击Save and Continue

**接下来会有比较多的小细节需要注意,忽略了其中一个步骤都可能影响你的设定无法完成。

Step 2 Create Client Id & Client Secret
2.1 Credentials Type
2.1.1 打开新的页面,搜索 Google Cloud Console https://console.cloud.google.com/
2.1.2 Sign up你的Gmail户口
2.1.3 在Dashboard上方的工具栏点击 Select a Project > 点击右上角的New Project
2.1.4 Create New Project Name
2.1.5 在左边的工具栏选择APIs & Services > 点击Library
2.1.6 搜索 Gmail API > enable Gmail API
2.1.7 在Service Detail 选择 Credentials > 选择右上角的Create Credentials
2.1.8 Select API> Gmail API >选择 User Data > 点击Next
2.2 OAuth Consent Screen
2.2.1 在App Information填写资料 > Save and Continue
2.3 Scopes
2.3.1 无需更改任何资料,直接点击 Save and Continue
2.4 OAuth Client ID
2.4.1 Application Type > 选择 Web Application
2.4.2 Authorized Redirect URIs > 点击 Add URI
2.4.3 输入URI: https://connect.wpmailsmtp.com/google/ 后点击DONE即可
2.5 Your Credentials
2.5.1 当设定完成后,页面会回到APIs & Service,
2.5.2 点击右边的Create Credentials > 选择 OAuth Client ID
2.5.3 重复4的步骤,获取Client Id和Client Secret > 点击OK
2.5.4 选择左边工具栏的OAuth Consent Screen > 点击 Publish APP

Step 3
3.1 重新回到SMTP Setup Wizard的后台,将Client Id和Client Secret拷贝及粘贴(Copy & Paste)
3.2 点击 Connect to Google
3.3 输入website 名字和网址 > 点击 Save & Continue
3.4 确认已完成步骤 > 点击 Save & Continue
Step 4 & 5 可以选择跳过 (Skip)
Step 6 不需要Install任何东西,直接点击右下角的Finish Setup
到Mail Box查看是否有收到Email Test的邮件

完成以上步骤后,你的wordpress 后台就有了接收Email的功能。