Skip to Content
Technical Articles
Author's profile photo Syed Baba Tajuddin Hussaini

SAP Intelligent RPA – Send Outlook Mass Email

Hi All,

Introduction: 

We will see below how to send outlook mass email through SAP Intelligent RPA.

Mass emails we usually create and send to our existing clients or any other large group of recipients. When it comes to send outlook mass email through SAP Intelligent RPA. Here we write the email content in HTML format in text file and read the data from it and send. However, for large group of recipients we use text file in HTML format to write email address of large group of recipients so that we can read it and send email. We see below step by step basic example how to send outlook mass email through SAP Intelligent RPA.

Steps to send outlook mass email through SAP Intelligent RPA as follows:

  1. Create a new text file write and save the body content of email in HTML format.
  2. Create a new text file and write and save email address of large group of recipients in HTML format.
  3. Create a new project in desktop studio.
  4. Select outlook integration from library.
  5. Create a new work flow.
  6. Build to generate the code. Edit it as per our requirement.
  7. Save, rebuild and debug.

Prerequisites:

  • Microsoft Outlook
  • Desktop Studio 1.0.8.36

1. Create a text file in HTML format write and save the email body content:

Create a new text file write and save the body content of email in HTML format you want to send in email. Following is the sample of email body content. Here, the special characters will be replaced by word All from our code i.e. we can seen in email as Hi All.

Text%20file%20for%20email%20body%20content

Text file for email body content

2. Create a text file in HTML format write mass email ids you want to send an email:

Create a new text file and write and save email address of large group of recipients in HTML format you want to send email. In following HTML format we can write email address of recipients separated by semi colon.

Mass%20email%20address

Mass email address

3. Create a  new project:

Open the desktop studio > Click on File and click on new project. Give the project name, title, client name and comments are optional and click on save.

Create%20a%20new%20project

Create a new project

4. Select outlook integration from library:

  • Right click on script perspective and click on Include library script to select outlook integration.

Include%20library%20script

                                                               Include library script

  • Select outlook integration checkbox and click on save button.

Select%20Outlook%20integration

Select Outlook integration

5. Create a new work flow:

  • Right click on Global from work flow perspective and create a new work flow and give the name for work flow and click on save.

New%20work%20flow

New work flow

 

  • From Activities we can drag and drop custom activity two times and rename it to Email content and Send Email also add end scenario as shown below. Click on Content then right click to create a new folder and can rename it as myData.

Create%20a%20new%20work%20flow

Create a new work flow

6. Click on build to generate the code:

  • Once the work flow is created. Save it and click on build to generate the following code and edit it as shown below. Here, we reading the data from text file for email content

Email%20content

Email content

  • Similarly we are reading the data from text file to add email address of large group of recipients. Also, special characters are replaced by word All. i.e. in email we can see as Hi All.

Send email

7. Save, rebuild and debug your project:

Once we debug our project successfully, from taskbar click on desktop agent and click on the work flow name to send mass email through SAP Intelligent RPA.

Save%2C%20build%20and%20debug

Save, rebuild and debug

Conclusion:

The above steps should help you to understand and use of outlook library and reading the data from external text file for email body content and similarly reading the data i.e. mass email address from external text file to send mass email. With the above steps we are now able to send outlook mass email through SAP Intelligent RPA.

Enjoy SAP Intelligent RPA!

Thank you,

Syed Baba Tajuddin Hussaini

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sairam Padarthi
      Sairam Padarthi

      Thank you  hussain this blog is very useful