Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Distinct VIT: MIME Control: OnExternal

   Products   Downloads   Sales   Support   About us
  VIT
 



        
 

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



Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  10/6/2008   Legal notices | PRIVACY Policy | Networking News |