Email automation with excel sheet

HI ,I am trying to get outlook message to an excel file.When i follow the tutorial i got another error message.
Pls help.Thanks a lot.

Error message :
excel.test.xaml: The private implementation of activity ‘1.5: Multiple Assign’ has the following validation error: Cannot assign from type ‘System.String’ to type ‘System.Data.DataTable’.

1 Like

@Ang_Weng_Fook

body1s variable should be of type String but not DataTable. Can you please check variable type once.

Hi,

You must make sure that you write System.Net.Mail.MailMessage in the Type Argument field of the For Each activity.

hey

your variable is type DataTable, you cant assing string into data table. Please change the type of body variable to string.

regards