Invoking e-mail, Telnet, and FTP Services from Your Applications

To invoke e-mail, telnet, or FTP services from your COBOL application, you include a standard mailto, telnet, or FTP path in the VALUE clause of the DISPLAY WEB-BROWSER statement. For example, to open the user's default e-mail program and create a new message addressed to "info@acucorp.com", you would include:

display web-browser, value "mailto:info@acucorp.com".

To open the login screen to a server called "sun" over telnet, you would include:

display web-browser, value "telnet://sun".

If desired, you can even use this interface to log on to a UNIX system from your Windows environment.

To go to the FTP site "ftp://ftp.acucorp.com", you would include:

display web-browser, value "ftp.acucorp.com".

This opens a directory view of Acucorp's FTP server.