How to send a mail in draft using blueprism

To send a mail in draft using Blue Prism, you can follow these steps:

Prerequisites:

  1. You have a Blue Prism process with a "Send Email" activity.
  2. You have a draft email created in your email client (e.g., Outlook, Gmail, etc.).

Step-by-Step Instructions:

  1. Create a new process or open an existing one where you want to send the draft email.
  2. Drag and drop the "Send Email" activity from the "Utilities" section of the Blue Prism toolbox into your process flowchart.
  3. Configure the Send Email activity:
    • Set the "Email Server" to the name of your email server (e.g., "Outlook" or "Gmail").
    • Set the "Email Account" to the email account you want to use to send the email.
    • Set the "Email Subject" to the subject of your draft email.
    • Set the "Email Body" to the body of your draft email.
    • Set the "Attachments" to any attachments you want to include with the email.
  4. Use the "Get Draft Email" activity:
    • Drag and drop the "Get Draft Email" activity from the "Utilities" section of the Blue Prism toolbox into your process flowchart, just before the "Send Email" activity.
    • Configure the "Get Draft Email" activity to retrieve the draft email from your email client. The exact configuration will depend on your email client and the type of draft email you want to retrieve.
  5. Use the "Set Email Body" activity:
    • Drag and drop the "Set Email Body" activity from the "Utilities" section of the Blue Prism toolbox into your process flowchart, just after the "Get Draft Email" activity.
    • Configure the "Set Email Body" activity to set the body of the email to the contents of the draft email retrieved by the "Get Draft Email" activity.
  6. Use the "Send Email" activity:
    • The "Send Email" activity will now use the draft email retrieved and configured in the previous steps to send the email.

Example Code:

Here is an example of how you might configure the "Get Draft Email" and "Set Email Body" activities in Blue Prism:

' Get Draft Email activity
Dim draftEmail As String
draftEmail = GetDraftEmail("Outlook", "your_email_account", "your_email_password", "your_draft_email_subject")

' Set Email Body activity
SetEmailBody(draftEmail)

Note: The exact code and configuration will depend on your email client and the type of draft email you want to retrieve and send.

By following these steps, you should be able to send a draft email using Blue Prism.