Connect 操作 in 电子邮件 软件包
- Updated: 2026/02/11
Connect 操作 in 电子邮件 软件包
Use the Connect 操作 to establish a connection with an email server. This is the first 操作 you must use to automate an email-related task.
Prerequisites
-
Outlook/Office 365
- If you use Client credentials flow authentication
mode, then perform the following steps:
- Log in to the Microsoft Azure portal.
- Register an application with the Microsoft identity platform to obtain the client ID and tenant ID. See Register an application.
- Add a Client secret.
- Based on the mail server you connect to, perform the relevant steps:
-
IMAP/POP3
Add the POP and IMAP permissions to your AAD application . See Authenticate an IMAP, POP or SMTP connection using OAuth.
-
EWS
- Configure for app-only authentication. See Configure for app-only authentication.
- Configure an application access policy and limit the scope of application permissions. See Configure application access policy.
-
IMAP/POP3
- If you use the Authorization code with PKCE
authentication mode, perform the following steps:
- Log in to the Microsoft Azure portal.
- Register an application with the Microsoft identity platform to obtain the client ID and tenant ID. See Register an application.
- When registering the application, set the redirect URI to
http://localhost:9999/callback. - Add permissions with type delegated for IMAP, POP3, and SMTP and grant the application the required permission for Microsoft Graph to the application.
- If you use the Control Room managed authentication mode, see Configure Control Room managed OAuth for Outlook/Office365 (A-people login required).
The videos in the following playlist provides information about configuring and using OAuth 2.0 authentication in the 电子邮件 Connect 操作:
Note: 如果邮箱在循环 操作 中使用,请确保您注册了被分配执行自动化的用户。 有关更多信息,请参阅 Manage users and groups assignment to an application。 - If you use Client credentials flow authentication
mode, then perform the following steps:
-
Gmail
- If you use the Authorization code with PKCE
authentication mode, then perform the following steps:
- Configure the OAuth 2.0 settings in the Google Cloud Platform (GCP) and retrieve the necessary credentials to connect Automation 360 with your Google Workspace applications.
- Ensure you create a project.
See create a project.
- Generate the Client ID and Client secret. See Setting up OAuth 2.0.Note:
- Select the Web application option.
- Add this authorized redirect URI:
http://localhost:8888/Callback.
- Complete the steps to set up user consent for the username that you will use to connect to the Automation 360.
- If you use Control Room
managed authentication mode, then perform the following
steps:Important: 电子邮件 软件包 currently supports the Control Room managed Oauth option for the OAuth connections based on Authorization Code Flow only.
- Configure the OAuth 2.0 settings in the Google Cloud Platform (GCP) and retrieve the necessary credentials to connect Automation 360 with your Google Workspace applications.
- Ensure you create a project.
See create a project.
- Generate the Client ID and Client secret. See Setting up OAuth 2.0.Note:
- Select the Web application option.
- To add the authorized redirect URI, perform the following steps:
- Log in to the Control Room as an administrator or any user with Manage connections and View connections permissions and navigate to .
- Click Create connection tab and select Custom option from the Provider type field.
- Copy the Callback URL and navigate back to the Client application page in Google Cloud Console.
- Click + ADD URI button under Authorized Redirect URIs and paste the URI in the URIs field.
- Click Create.
To learn how to create an OAuth connection in the Control Room, see 创建 OAuth 连接.
- Complete the steps to set up user consent for the username that you will use to connect to the Automation 360.
- If you use the Authorization code with PKCE
authentication mode, then perform the following steps:
- Client Credentials flow does not support Gmail.
- The Client Credentials and Authorization code with PKCE authentication modes do not support Yahoo and MSN mail servers.
Multi-factor authentication for Azure EWS (A-people login required)
This 操作 enables you to provide the email server credentials and details, and associate this information with a session name. Use this same session name for the other 电子邮件 操作, so you only have to provide the server information once.
Procedure
To establish a connection with an email server, follow these steps: