Read and Review Automation Anywhere Documentation

Automation Anywhere Version 11.3

Close Contents

Contents

Open Contents

Get email from a mail server

  • Updated: 9/14/2020
    • 11.3.x
    • Explore
    • Enterprise

Get email from a mail server

The Get All Messages action of the Email Automation command enables you to retrieve emails from a mail server.

Version 11.3.5If you choose the server type as the Exchange Web Services (EWS) using OAuth authentication, the Tenant ID and Client ID fields are mandatory although the interface displays these fields as optional because they can be skipped for Basic Authentication. The recommended practice is to use OAuth authentication for enhanced security.

Configure online EWS for OAuth authentication

Procedure

To retrieve emails from a mail server, do the following:

  1. Double-click or drag one of the Email Automation commands to the Task Actions List pane.
    The Email Automation dialog box appears.
  2. Select the Get All Messages option to retrieve emails from the mail server.
  3. Select an option from the Server Type section:
    • IMAP
    • POP3
    • EWS
  4. Specify details of the email server:
    1. For IMAP and POP3 server specify the following details:
      • Host Name: Host name of the email server.
      • User Name: User name you want to use to connect to the email server.
      • Password: Password you want to use to connect to the email server.
      • Server uses secure connection: Select this option if the email account uses secured connection.
      • Port Number: Port that you want to use to connect to the email server
      • Version 11.3.3.3Version 11.3.5.1Use local timezone: Select the Use local timezone check box to convert the server time zone to the local time zone.

        When the Use local timezone check box is selected, the email received date and time is displayed in the local time zone. If the check box option is not selected, the email received date and time is displayed in the server time zone.

        Note: This feature is available in the following versions: Version 11.3.3.3 and 11.3.3.3.x, and Version 11.3.5.1 and later. It is not available in Version 11.3.4.x and Version 11.3.5.
    2. Version 11.3.4 For Exchange Web Services (EWS), specify the following details:
      • Domain Name: Domain name of the EWS server.
      • User Name: User name you want to use to connect to the email server.
      • Password: Password you want to use to connect to the email server.
      • Version 11.3.5Client ID and Tenant ID: Enter the unique client and tenant IDs generated when you registered the application in the Microsoft Azure portal. These fields are required for OAuth.
      • Exchange Version: Select an option from the list to specify the version of the EWS server you want to use.
      • Exchange Url: Specify the URL of the EWS server.

        You can click the Fetch option to populate the Exchange Url field based on the values you have provided in the User Name and Password fields.

  5. Select an option to specify which emails to retrieve:
    • All: Retrieves all emails.
    • Read: Retrieves emails that are read.
    • Unread: Retrieves emails that are unread.
    Note: This option is not available for POP3 type email server.
  6. Select an option to specify the format in which you want to download the email messages:
    • HTML
    • Plain Text
  7. Specify the location where you want to save the downloaded attachments in the Save attachment in field.
    Note: If the Save attachment in field is left blank, the attachments are saved at the location specified in Tools > Options > Run > Time > Start in path.
  8. Select the Overwrite File option if you want to overwrite the existing files with the downloaded files.
  9. Click Save.
    The system stores various information about emails retrieved such as subject, sender, and message in system variables. See Email System Variables.

Next steps

You can use the system variables to display information in a message box or perform other operations.
Send Feedback