how to save each mail in gmail mail message in a list of mail message like outlook mail message activity…i am not able to use get outlook mail message activity as it giving error in 2007 ms office version.
Have you tried using get IMAP mail messages activity?
No, but i wanted to use this activity only
i am getting error like:-
Get IMAP Mail Messages: Invalid credentials (Failure)
Can you please follow these steps and try again?
Refer this thread for example of how to get list of mail messages from GET IMAP mail activity
And if you are facing any challenge with authentication then make sure you have enabled Imap in your gmail account
Here you go with the steps to do that
is there anyway to save the messages in gmail activity as list of mailmessages
so that the get imap or get outlook activities can be replicated
Ofcourse it gives output as a list of mail message
- Messages - The retrieved messages as a collection of MailMessage objects.
no iam asking about for each email activity inside the use gmail scope
Can u elaborate a bit more
i want to save each mail in here in a list of mail message like we get output when using get outlook mail message activity but here it is not available so can we assign each mail in a list using assign activity?
Fine got it
- First in variable panel create a variable of this type
With variable name as list_mailmessage with default value as New List(of System.Net.Mail.Mailmessage)
- Now inside the Use Gmail activity use FOR EACH activity instead of FOR EACH MAIL activity
in that activity that pass the input as [selected Mails] and change the type argument as System.Net.Mail.MailMessage
- Inside the loop use a ADD TO COLLECTIONS Activity where in property panel mention as
Collection - list_mailmessage
Item - item
Type argument - System.Net.Mail.MailMessage
This will create list of mail message as we get in get outlook mail activity
Thanks…this is exactly what i required
Glad it got resolved
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.