APIReadAllEmailsToFile Method |
Reads and saves all emails to text (.txt) files. Saves the Sender Name, Sender Email, Email Subject, and Email Body text.
Namespace:
AppRobotic
Assembly:
AppRobotic (in AppRobotic.dll) Version: 15.21.3.21 (15.21.03.21)
Syntax public string ReadAllEmailsToFile(
Object SaveToFolderPath,
Object EmailsAllOrUnread,
Object MarkAsUnread
)
Parameters
- SaveToFolderPath
- Type: SystemObject
Specify "Default" or a folder path to save the .txt files with email message output. If Default, saves to the AppRobotic Emails folder in Documents. - EmailsAllOrUnread
- Type: SystemObject
Specify "All" or "Unread". "All" gets the all emails in the default folder (i.e. Inbox), "Unread" only gets the unread emails. - MarkAsUnread
- Type: SystemObject
Specify true or false. If true, will mark each email as Unread after saving. If false, will mark each email as Read after saving.
Return Value
Type:
StringReturns string containing 'success' or error message.
See Also