Send outlook mail error

I use activity send outlook mail but in body have error as below.

My code

dt_Temp.Rows(0)("Email_Body").ToString.Replace("ExceptionMessage",Exception.message.ToString)

Please guide me for solve it.
Thank you.

Hi @Stef_99

Take an assign activity and create a variable and give the expression at right side of assign activity, then pass the variable to the Body filed of Send outlook Mail Message activity.

- Assign -> Variable1 = dt_Temp.Rows(0)("Email_Body").ToString().Replace("ExceptionMessage", Exception.Message.ToString())

Hope it helps!!

1 Like

Hi @Stef_99

Try with this

dt_Temp.Rows(0)("Email_Body").ToString.Replace("ExceptionMessage", Exception.Message.ToString)

Hope this helps :slight_smile:

1 Like

@AJ_Ask @mkankatala It same error.

Could you explain what do you want to pass the data in the mail body… @Stef_99

1 Like

Now I can edit code completed,

Thank you for your supoort.

1 Like

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