@ericmabkv
Follow the steps outlined below if the text appears in a single line.
After splitting your PowerShell script, you will obtain your texts in list variables as shown below.
Then, create a variable named `strhtmlbody` with an empty value. Next,
Iterate through your `TextList3` variable and concatenate each list value with "<br/>" as illustrated in the screenshot below.
Finally, pass the same variable into the email body and enable the "Body is HTML" option as depicted in the second screenshot.


Code:
SET PowershellOutput TO $'''The user: Eric Test2 is not in Insperity
The user: Eric Test is not in Insperity'''
Text.SplitText.Split Text: PowershellOutput StandardDelimiter: Text.StandardDelimiter.NewLine DelimiterTimes: 1 Result=> TextList3
Outlook.Launch Instance=> OutlookInstance
SET Strhtmlbody TO $'''%''%'''
LOOP FOREACH CurrentItem IN TextList3
SET Strhtmlbody TO $'''%Strhtmlbody% %CurrentItem% <br/>'''
END
Outlook.SendEmailThroughOutlook.SendEmail Instance: OutlookInstance Account: $'''deenu@office365journey.onmicrosoft.com''' SendTo: $'''deenucse@gmail.com''' Subject: $'''Sample''' Body: Strhtmlbody IsBodyHtml: True IsDraft: False
How to copy/paste the above code into your PAD?

Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀