The Big Red Toolbox MGCEMail Access the Mail files October 24, 1999 © NSB Corporation. All rights reserved. |
AddObject "MGCEMail.Mail", "Name"
AllFolders | A read-only property which returns an array of folder identification numbers. These numbers are only meaningful to the mail store.
|
AllServices | AllServices is a read-only property that returns an array of service names.
Passive services such as "Windows CE Inbox Service" are not included. If
there are no direct services (non-passive), AllServices will throw an error which is easily trapped with On Error Resume Next.
|
BCC | Set and retrieve blind CC addresses attached to a message.
|
CC | Set and retrieve CC addresses attached to a message.
|
Date | Set and retrieve the date attached to a message.
|
Error | Retrieve the last error code from the mail subsystem. This is a read-only property.
|
ErrorMsg | Retrieve the last error in the form of a descriptive string from the mail subsystem using this read-only property.
|
Folder | Set and retrieve the current folder in use. A folder is identified by its numeric value as returned by the AllFolders property. There are also "stock" folders which exist on all devices and have fixed identifiers. These are:
|
FolderMessages | A read-only property which returns an array of numeric identifiers, one for each message contained within a folder. Set the Folder property before calling this property to determine from which folder to retrieve message IDs.
|
FolderName | Retrieve the name of a folder based on its identifier using this read-only property.
|
Message | Set and retrieve the body of a message.
|
Recipient | Set and retrieve addresses of recipients attached to a message.
|
Sender | Set and retrieve the address of a message's sender.
|
Service | Set and retrieve the name of a mail service through which a message is sent. Valid service names may be obtained by calling the AllServices property.
|
Subject | Set and retrieve the subject line attached to a message.
|
Version | Retrieve the version of the MGCEMail object.
|
Clear | Initializes the Sender, Recipient, CC, BCC, Subject, Message, Service and Folder properties.
|
Close | Closes an open mail object.
|
CreateFolder | CreateFolder creates a new folder in the message store. The return value is the numeric identifier of the newly created folder.
|
DeleteFolder | DeleteFolder removes a folder from the message store, the folder identified by its numeric identifier. Note that you cannot delete system folders such as Inbox and Outbox.
|
DeleteMessage | Remove a message from the message store, the message identified by its numeric identifier.
|
Move | Move a message to a folder. The message is identified by its numeric identifier and the target folder is identified by setting the Folder property before calling the Move method.
|
Open | Open the mail object. This is required before performing any other operation on the message store.
|
ReadMessage | ReadMessage obtains various header data items and the message body from a message and sets the Sender, Recipient, CC, BCC, Subject, Message, Service and Folder properties based on the read message. Use these properties to obtain the message data after calling ReadMessage. The message to read is identified by its numeric identifier as returned by the FolderMessages property.
|
WriteMessage | This method takes the Sender, Recipient, CC, BCC, Subject, Message, Folder and Service properties and constructs a message from that data. Unused properties are not included in the message. The finished message is added to the folder identified by the Folder property and the return value of this method is the ID of the newly created message. Note that writing a message does not mean the message is actually sent anywhere, only that it is added to the mail store.
|