How to Create Body Content Using C#

Used code

"Hi Team,"+System.Environment.NewLine+
"Status report file of XYZ Process"+ System.Environment.NewLine+System.Environment.NewLine+
"Thanks,"+System.Environment.NewLine+
"ABC RPA Team"

Hi @Pujari_Manjunatha

Hoping that you’re sending a mail to someone using Send Mail.
And you need to pass the body.
You can use something like

"Hi Team,<br>Status report file of XYZ Process<br><br>Thanks,<br>ABC RPA Team"

mark the property isBodyHTML as true.

Thanks

Happy Automation! :smiley:

Hi,

Can you try to use @ as the following?

@"Hi Team,
Status report file of XYZ Process

Thanks,
ABC RPA Team"

Regards,

Hi @Pujari_Manjunatha,

I imagine there will be an option to write this as HTML, I would advise using that instead.

Not it’s not working

Hi,

Your mail seems html mail. Can youtry to use Replace method as the following?

yourString=yourString.Replace(((char)10).ToString(),((char)10).ToString()+"<br />")

Regards,

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