How to store gmail body and get the body text

Hi guys,

I couldn’t able to read gmail body and get text from body ,please can anyone help this

Raja G

We can use GET IMAP MAIL ACTIVITY where we can get the list of mails from Inbox of gmail as a variable of type list of mailmessage named list_mails

Now use a FOR EACH activity and pass the above variable list_mails as input and change the type argument as System.Net.Mail.MailMessages

—inside the loop use a ASSIGN activity like this
strinput = item.Body.ToString

Cheers @Raja.G

1 Like

@Palaniyappan thanks ,working fine

For me this doesn’t work. I can get the item.Subject easily, but if I type item.Body or item.Body.ToString, nothing is printed in the “write line” activity. However, I have a very simple Gmail message with one sentence in the body of the email.

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