Read and Review Automation Anywhere Documentation

Automation Anywhere Version 11.3

Close Contents

Contents

Open Contents

Delete emails from a mail server

  • Updated: 5/12/2020
    • 11.3.x
    • Explore
    • Enterprise

Delete emails from a mail server

The Delete All Messages action of the Email Automation command enables you to delete 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 delete 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 Delete All Messages option to delete 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
    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 the emails to be deleted:
    • All: Deletes all emails.
    • Read: Deletes emails that are read.
    • Unread: Deletes emails that are unread.
    Note: This option is not available for POP3 type email server.
  6. Click Save.
    The system stores various information about emails retrieved such as subject, sender, and message in system variables. See Email System Variables.
Send Feedback