Anyone Tried using Email Oauth (Authentication with PKCE Flow) Package for Sending Emails via Gmail Account ? If yes , Kindly share the steps to follow.
Email Oauth package for Gmail Account
Dear
Yes, it is possible to use the Email OAuth (Authentication with PKCE Flow) package in Automation Anywhere to send emails via a Gmail account. Here are the steps you can follow to set this up:
-
Install the Email OAuth (Authentication with PKCE Flow) package from the Automation Anywhere Marketplace.
-
Go to the Google Developer Console (https://console.developers.google.com/) and create a new project.
-
Enable the Gmail API for the project.
-
Create an OAuth 2.0 client ID for the project. Select "Other" as the application type and give the client ID a name.
-
Download the JSON file for the client ID and save it to your computer.
-
In Automation Anywhere, go to the Email OAuth (Authentication with PKCE Flow) package and open the "Google OAuth 2.0 Configuration" task.
-
In the "Client ID JSON File" field, select the JSON file you downloaded in step 5.
-
In the "Scope" field, enter the following: "https://www.googleapis.com/auth/gmail.send"
-
Click "Run" to start the configuration task. This will open a web browser window and prompt you to sign in to your Google account.
-
Once you have signed in, you will be redirected to a page asking you to grant permission to the Automation Anywhere app to access your Gmail account. Click "Allow" to grant permission.
-
The configuration task will complete successfully, and you will now be able to use the Email OAuth (Authentication with PKCE Flow) package to send emails via your Gmail account in Automation Anywhere.
Regards,
Hi
If you don’t mind, could you please share the screenshot of the section in the Email package where we need to enter these details (specifically the Google OAuth 2.0 Configuration)?
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/7f54b576-0b6d-4171-85fe-b8b9483efb86.png)
I am unable to find any such options under Email package though.
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/427510bf-b30e-4fcb-827e-0a5da1e6644a.png)
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/79c1a1ec-6f1e-4e7b-a02a-d4f24c9d6c29.png)
I couldn’t find any such package on bot store as well.
Hi
Think
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
Hi
Thanks for sharing the detailed steps,
Im bit confused here, i dont see any option for Scope Field. Could you please share any screenshots for reference?
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/97e3e2f9-b71d-4f2d-8201-ebf515f7aad4.png)
Another question, how does this email action work in the case of multiple user logins?
Basic Auth authenticates in the backend and sends the email, but in this case, it asks for sign-in via UI to send each email
Hi
You are right in unattended automation we cannot us this.
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
Then how it can be achieved in unattended mode?
Is there any alternate solution available to implement in unattended mode?
Hi
You can make request for this as a new Enhancement or can log a ticket with AA here for further clarification.
Then how it can be achieved in unattended mode?
Is there any alternate solution available to implement in unattended mode?
Hi
Can you check with your IT team whether they can change the Authorization method, if not then this will be a attended use case. I’d recommend to get in touch with AA by raising support case.
Hi
Can i also get the link for downloading this package?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.