AnyMail/400 Mail Server Framework APIs
The mail server framework defines the format of how the data is passed rather than the format of the data itself. This allows it to work independently of the format of the data. The format of the data is defined by assigning a type to the information. The different types supported include:
- Address type
- Envelope type
- Attachment reference type
- Message type
For additional information, see Using AnyMail/400 Mail Server Framework APIs.
The mail server framework APIs consist of the program calls shown in the following list:
- Add Mail Server Framework Configuration (QzmfAddMailCfg) generates a configuration for the mail server framework used in processing messages.
- Change Mail Message (QzmfChgMailMsg) changes information about a mail message that was previously created using the Create Mail Message (QzmfCrtMailMsg) API.
- Complete Creation Sequence (QzmfCrtCmpMailMsg) removes a previously created, reserved mail message identifier from the mail server framework's list of reserved identifiers and acknowledges that the message was created.
- Create Mail Message (QzmfCrtMailMsg) creates an electronic mail message.
- List Mail Server Framework Configuration (QzmfLstMailCfg) generates a list of type configurations.
- Query Mail Message Identifier (QzmfQryMailMsgId) queries the status of a message associated with a mail message identifier.
- Remove Mail Server Framework Configuration (QzmfRmvMailCfg) removes a configuration from the mail server framework.
- Remove Reserved Mail Message Identifier (QzmfRsvMailMsgID) removes an identifier for an electronic mail message that has been reserved using the Reserve Mail Message Identifier (QzmfRsvMailMsgId) API, but has not been used to create a message.
- Reserve Mail Message Identifier (QzmfRsvMailMsgId) reserves an identifier for an electronic mail message.
- Retrieve Mail Message (QzmfRtvMailMsg) retrieves information about an electronic mail message and returns it in the receiver variables provided by the caller.
The user can write exit programs that are called by the system for the following mail enablement exit programs:
- Snap-In Call exit program provides information about an electronic mail message to defined snap-in programs.
- Track Mail Message Changes exit program allows exit programs to read all the parts of a message to keep track of the message.
- Validate Data Field exit program allows exit programs to validate the data for a message based on the type selected.
[ Back to top | Office APIs | APIs by category ]