Click or drag to resize

APIReadNextEmailToFile Method

Reads and saves the next email to a text (.txt) file. 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
C#
public string ReadNextEmailToFile(
	Object SaveToFolderPath,
	Object EmailsAllOrUnread,
	Object MarkAsUnread
)

Parameters

SaveToFolderPath
Type: SystemObject
Specify "Default" or a folder path to save the .txt file with email message output. If Default, saves to the AppRobotic Emails folder in Documents.
EmailsAllOrUnread
Type: SystemObject
Specify "All" or "Unread". "All" gets the next email in the default folder (i.e. Inbox), "Unread" only gets the next unread email.
MarkAsUnread
Type: SystemObject
Specify true or false. If true, will mark this email as Unread after saving. If false, will mark this email as Read.

Return Value

Type: String
Returns string containing 'success' or error message.
See Also