CommuniGate™ Server Application Program Interface
Introduction
The CommuniGate Server/Client interaction is based on the AppleEvent mechanism. There are 40+ event types supported thot allow to configure and monitor services, to view and modify queues, to retrieve and sumbit messages, etc - all operations performed with CommuniGator application performs are requested via an AppleEvent.
Besides, there are AppleEvents to support other applications - they provide simplified ways to perform basic message-management operations.
The SUBMIT MESSAGE event
To submit a message to the CommuniGate Server for delivery, the SUBMIT event should be sent to the server:
Event Class - 'CmGt', Event Type = 'SMAI', Parameter = direct ('----').
The parameter should a 'TEXT' data block containing the text of the message in RFC822 format: header fields, an empty line, then the message body. The text should use the Return symbol as the line separator. The text is processes in the same way if it is received from Internet: the character set used is assumed to be the Default Internet Set (as set in the server General settings), or the character set explicitly specified in the MIME headers.
If the message has not been submitted, the CommuniGate server returns an error code.