UiPath forward exchange mail and add additonal body

Hello, I’ve been trying to forward mail with the “Send Exchange Mail Message” Activity, I want to also write something in the body and chain that with all the other messages. for some reason the body comes clean instead of the message that I added in the body section of the activity. Would love to know how to do that. The use case is basicaly like “reply” to a mail but only the additional recipients and not to the original sender.

@itaim

How are you trying to add?

You can get the message then add the string before it and send that message back using send email also …

If you use forward then the body would not change as expected as the original body would be used

Cheers

Hello, Thanks for the reply.

I tried to do this: “Hello, this is the forwarded mail”+mm_CurrentMailMessage.Body

and it didnt work.

@itaim

This was added in body and forward mail or reply is checked?

Cheers

That’s correct. forwarded mail is checked.

EDIT: I did what you told me and it worked, thank you very much!

Is there a way to show images and stuff like that in the correct way? seems like the body is only text

1 Like

@itaim

We can add those also…you need to get html body and also add the new text as html only

Cheers

It seems HTML appears badly on outlook. so I assume I can’t use HTML at all

@itaim

It does not appear bad…not sure what you tried as we use html only to format our mail bodies

Cheers

I use the MailMessage.Body property for the text.
MailMessage.BodyAsHTML is null for some reason.

EDIT: I did get mail messages without select isHTML on it. Now it works :slight_smile:

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