Monday, March 27, 2023

Create Gmail SMTP and create Client id, Client secret key in google console

Hello 

Today I saw you how to create google smtp api and client id, client key in console.

This process will help you and client also for get client id and client key without sharing password.

1: Open this url with your google id password : 

https://console.cloud.google.com/


Click on left top side, this popup is open. Click on "New Project" text.

2: Create project details with project name and select organization and location.


3: Now one home page like open. Click on "API and Services" from quick links. It will open this type of window.  Click on "Library"


4: Now many libraries are listed. Please select "Gmail API".


5: Click on "Enable" text. 


6: Now click on "OAuth consent screen" and click on "Create".


Fill details and click on only 3 fields :   No need to feel all fields.
1:App Name
2:User Support Email
3:Developer Contact EMail Address




And click on "Save And Continue" button at bottom.

Important step

7: Click on left side "Credentials" and click on "Create Credentials" like this.


Now click on "OAuth Client ID". Create name and you will get credentials.

Edit:
Note: Also create user for it and set your app to  "Publish". If you set as "Test" mode then after 7 days email smtp is not working. you have to re-authenticate it. For avoid this issue, please set your mode as publish.

No comments:

Post a Comment