How to get TO & CC email id list & send email

Hi Everyone,

I want bot to get the list of to & cc email id from the email & send reply e-mail using outlook.

Kindly, provide solution to this scenario.

Thanks in advance.

Hi @nithya ,

To achieve this task in you’ll need to perform the following steps:

  • Use the “Get Outlook Mail Messages” activity to retrieve emails from Outlook and get the output
  • Loop through each email using a “For Each” activity.
  • Within the loop, you can extract the To and CC email addresses.
  • For To email addresses, use:
    mailMessage.To
    
  • For CC email addresses, use:
    mailMessage.CC
    

@nithya

Depending on thw get mail you use every get mail returns a list of mail object…from which you can get indicidual mail and they would have .To and .Cc properties to access the mail ids

Cheers