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"
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"
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!
Hi,
Can you try to use @ as the following?
@"Hi Team,
Status report file of XYZ Process
Thanks,
ABC RPA Team"
Regards,
I imagine there will be an option to write this as HTML, I would advise using that instead.
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.