Hi, is there option to write in the next line as +Enviornment.Newline not working.
If you have any method to write in the next line.
I know it’s very simple but not working for me. It’s writing in the same line only.
Hi, is there option to write in the next line as +Enviornment.Newline not working.
If you have any method to write in the next line.
I know it’s very simple but not working for me. It’s writing in the same line only.
yah next to that " mention like this
"HI
-" + Environment.Newline + Address.ToString
Cheers @balkishan
How? can you give hint, Here forget the Address variable same I want to put body of another email. So it’s showing me this error.
Oh, you are trying to write in new line, the give it as "Text you have " + Environment.NewLine + Address.tostring
Sorry for the previous reply @balkishan …
The solution in this will work…
Try this bro
Already did that bro, but it’s not working. It’s writing in the same line only.
As I mentioned in the post also other than + Environment.NewLine +
so that I can try
see this is the email I am getting, I already used the + Environment.NewLine+, but it’s not working
Do one more thing bro,
Assign a string variable as Environment.NewLine and you already have address variable then try as
"Text " + newLineVariable + Address
Fine
we can do one thing
store this text in a .txt file like this
"Hi,
Your execution has completed successfully.
Thanks for using the Robo:)
Regards,
UiPathRobot.
{0}"
–now in the studio before to this send outlook mail activity use a read text file activity
pass the file path of the above .txt file (written in notepad)
and get the output with a string variable named out_text
–in the body of the send outlook mail activity mention as
String.Format(out_text,Address.ToString)
simple
Cheers @balkishan
Or make everything in an assign variable before giving it in the mail body and pass the entire variable @balkishan . That would do the needy.
Already did that thing bro, even I assigned the Enviornment.Newline in a Nextline variable then used that for writing in the new line but not working.
so I have give the complete message in double quotes in Text file.
What is this {0}? so I have mention this before closing the double quote.
Yes
{0} is the place holder where the value of the variable Address is going to be filled with the String.Format method
yes before double quotes
Cheers @balkishan
This is also not working giving me the same output. Please see the output.
This is Email I am getting
or can i have a view on the body value been passed in the send outlook mail activty
a screenshot if possible
Cheers @balkishan
ahaa sorry (it was my bad)
no double quotes in the text file
kindly remove that and mention simply as
Hi,
Your execution has completed successfully.
Thanks for using the Robo:)
Regards,
UiPathRobot.
{0}
Cheers @balkishan
No luck bro, same after remove the double quotes.
Please have a look bro.
hi @balkishan,
try this
"<html><body><p>Hi,<br>Your execution has completed successfully.<br><br>Thanks for using the Robo:)<br><br>Regards,<br>UiPathRobot.<br></p></body></html>"+vbCrLf+**addressVar**