NEW LINE into the Activity "UiPath.MicrosoftOffice365.Activities.Mail.SendMailConnections" Body

sendmail

Hello,
I need to get a NEW LINE into the Activity “UiPath.MicrosoftOffice365.Activities.Mail.SendMailConnections” Body but the new line is not inserted.
In the Body is something like: “Good day” + Environment.NewLine + recipientName(variable) + Environment.NewLine + “the request has been registered.”

I tried:
Environment.NewLine
vbNewLine
vbCrLf
break tag < br >–> somehow when I use this one, it works when starting the Robot manually but then when I run it thru Orchestrator, the break tag is being removed(?!) from the project.

Any other ideas?

Thank you

@monica.sl,

Try directly putting as HTML body like this.

If the HTML editor is not enable. Enable this way.
Click on Plus icon and select Body as HTML

Thanks,
Ashok :slight_smile:

Hi,

thanks for the reply, but I have also variables in the Body - in this case I cannot use “Body as HTML”.
I must use the option “Use Variable”:
sendmail1

@monica.sl,

You can use variables in HTML body as well. See how to do that here.

HTML Email

Thanks,
Ashok :slight_smile:

Hi Ashok,

thanks a lot, but how do I get to use multiple variables?
Whenever I try to add a new variable, the whole body is removed.
I need something like:


Hello,

this is the first message:
< variable1 >

and this is the second message:
< variable2 >


Kind regards,
Monica

@monica.sl,

Here is how you can do it.

HTML mail

Thanks,
Ashok :slight_smile:

Hi @ashokkarale Thank you very much!
Kind regards,
Monica

1 Like

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