|
Summary
Send information for external message.
Description
The OnExternal event will occur if the MessageType property is set to MESSAGE_EXTERNAL
or if the External method is used before creating a message. To create a message, set the
Action property to ACTION_CREATE or call the Create method.
Though this event has nine parameters, not all of them are mandatory. Depending on the AccessType
parameter some parameters become mandatory.
The AccessType parameter specifies the protocol and can be set to
"FTP", "ANON-FTP", "TFTP" or "MAIL-SERVER".
For "FTP", "ANON-FTP" and "TFTP" access types, the
FileName property must be set to name of the file that contains the actual data. The Site
parameter must be set to the name of the machine from which the file may be obtained. This
must be a fully qualified domain name. The Directory parameter is optional and can
be set to the directory where the files resides. The Mode parameter is also
optional and specifies the mode to be used while retrieving. For "FTP" and
"ANON-FTP" access type, Mode can be "ASCII", "IMAGE"
or "EBCDIC". For "TFTP" access type, Mode can be
"NETASCII", "OCTET" or "MAIL".
A "MAIL-SERVER" access type indicates that the actual body is available from
a mail server. The Server parameter is mandatory in this case and must be set to
the e-mail address of the mail server from which the actual body may be obtained. The Subject
parameter is optional and specifies the subject that is to be used in the mail sent to
obtain the data.
The Size parameter specifies the size of the data and is optional for all access
types. The Expiration parameter specifies the expiration date of the external data
and is optional for all access types. The Permission parameter specifies the
read-write permissions of the external data and is optional for all access types.
Example
Sub Mime_OnExternal (Subject As String, Site As String, AccessType
As String,
Directory As String, Mode As String, Server As String,
Permission As String, Expiration As String, Size As Long)
AccessType = "anon-ftp"
Mime.FileName = "test.exe"
Mode = "image"
Site = "127.43.101.12"
Directory = "pub"
End Sub
|