Outlook Body Preperation

isnt it the attached is not the appropriate way of preparing Body content!

@devasaiprasad_K

No…instead use bodyishtml in the properties and use<br> where ever you need a line break

Eg: "Hi Team,<br><br>attached is weekly report <br><br>Regards,<br>RPA Bot"

Also the mistake in yours is you closed the double quotes on first line only and open a new one on line 4 which is wrong again…everything should be inside quotes only except the variables you need…for variable you did correct

Cheers

@devasaiprasad_K

check the reference

1 Like

@devasaiprasad_K,

You should be passing variable like this.

String.Format("Hello There, Your task has been completed. {0}", strFinal)

Thanks,
Ashok :slight_smile:

Hi @devasaiprasad_K

You haven’t provided double quotes and concatenation with the strings, use the below one,

"Hi Team,

Attached is the weekly trouble ticket report for thie week of April "+strFinal1+"


Regards
Automation Team"

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.