Delete Email

The Delete Email action A feature that supplies the instructions in a botflow. in a botflow A file that stores the actions and variables designed to automate tasks. deletes an email message.

Using the Delete Email action, you can:

  • Deleted unwanted messages.
  • Automatically keep an email queue clear.

Some examples of using the Delete Email action are to:

  • Routinely empty an email folder.
  • Deleted spam messages.
  • Send processed email messages to the recycle bin.

Add a Delete Email action to a botflow

This example provides the steps necessary to add a Delete Email action to a botflow.

To add a Delete Email action to a botflow:

  1. Create a Credential to use your email account authentication from within the botflow.
  2. To create a credential:

    1. Click Add Item () on the Botflow Pane.
    2. Click Credential.
    3. Type a Name for the credential.
    4. Type a unique Username.
      Note: 
      • The username cannot match the name of any other credential in the botflow.
      • For email, the username is the email address.
    5. Type the value of the Password and confirm it to ensure that the correct value has been submitted.
    6. (Optional) Select Never save protected values with botflow.
    7. Note: In compliance with companies that have a policy against saved passwords, when selected, neither the password nor any of the Additional Field values are saved in the botflow. This option is for use in an attended bot situation where the user must first enter the password and/or Additional Field values before botflow runs, either by using the Credential Prompt action or by manually setting those values.

    8. (Optional) Type Notes to document any special instructions or functionality.
    9. Click OK to save the credential.
  3. Add an email account to your botflow.
  4. To create an email account:

    1. Click Add Item () on the Botflow Pane.
    2. Click Email.
    3. The Email window displays.

    • Account
      • Letter: Displays the default connection letter A rule that controls the connection to a target or application..
      • Email: Displays the email account information created in Credentials. If more than one credential is available, select the required credential from the drop-down list.
      • Authentication: Select Yes to require an SMTP Password for login.
      • Confirm Password: Enter the email authentication password.
      • Purpose: Select to:
        • Send & Receive: Both the Send Email (SMTP) settings and the Receive Email (IMAP) settings must be configured.
        • Send only: Only the Send Email (SMTP) settings must be configured.
        • Receive only: Only Receive Email (IMAP) settings must be configured.
      • Test Settings: Click to validate the entered Email Account information.
      • If the test is successful, a test email is sent to the email address provided in the Email field.

    • Send Email (SMTP)
      • Name: Enter an email display name for the email From field.
      • Server: Enter the SMTP Server name or IP address.
      • Port: Enter the required port number.
      • SSL: Select Yes to send email using SSL.
    • Receive Email (IMAP)
      • Server: Enter the IMAP Server name or IP address.
      • Port: Enter the required port number.
      • SSL: Select Yes to receive email using SSL.

  5. On the Actions list, click Email and then click Delete Email from the Email list.
  6. The Delete Email Action Builder window displays.

  1. Set the Delete Email settings.
  2. Use recycle bin: Select the check box to use the recycle bin for deleted emails. Otherwise, deleted emails are moved to the email application Deleted items folder.

  3. If needed, adjust the Rule settings to modify how Nintex RPA finds the application target.
  4. If needed, adjust the Run Error Task settings to fine tune how the action runs.
  1. View the action Details settings.
  2. If needed, adjust the Run Switch setting to create the action without running it.
  1. Optionally, add and action note.
  2. Click OK to add the Delete Email action to the botflow.