Problem:
This demo shows a Dialog System/COBOL application making MAPI calls to interface to Microsoft Exchange
Resolution:
INTRODUCTION
==========
This project demonstrates how Net Express can be used to send an e-mail using the Messaging Application Programming Interface (MAPI).
The demonstration consists of a simple GUI email application which can be used to send e-mails with attachments. It is intended to be a demonstration only and not a fully functional application.
Documentation on the API routines used can be found in the Microsoft Win32 Software Development Kit (SDK). A copy of this is supplied with Net Express as standard.
The Application Interface has been developed using Dialog System.
In addition to MAPI calls this module also shows how an Application can write messages to the NT Application Event Log using Win32 API routines.
The demo has only been tested on Windows NT using Microsoft Exchange but should work OK with any MAPI compliant application.
The application defaults to using a profile of "MS Exchange Settings" although this can be changed on the Configuration Tab. You can check what profiles are on your machine using the Mail Icon in the Control Panel.
SOURCE FILES:
==========
Program Files Description
------------------ -----------------------------------------------------------
EMAIL.CBL Main program which controls the User Interface.
EMAIL.CPB Copy file containing the dialog system data block.
SBAR.CBL Program which is called by Dialog system to handle the Status Bar functionality.
This file was generated by the Net Express Dialog Wizard.
SENDMAIL.CBL Subprogram called by EMAIL.CBL which uses MAPI calls to send an E-mail with
or without attachments.
EMAIL.GS Dialog System screenset containing the user interface.
EMAILRES.DLL Win32 Resource file containing bitmaps, icons etc.
REQUIREMENTS:
==========
This sample should run in all environments with a MAPI compliant e-mail system. In order for the Event Handling API calls to work you must be running under Windows NT, Windows 2000 or other NT-compliant system.
OPERATION:
========
Rebuild this project to create the files EMAIL.EXE and EMAILRES.DLL.
NOTE:
====
The Dialog System main window contains a status bar which is refreshed with the time constantly. In order to Animate through this program you should place a breakpoint in EMAIL.CBL after the call to Dialog System is done. And then run it to this point. You can then avoid the constant callouts to the SBAR program to maintain the status bar.
==========================================================
Keywords: demonstration, sample, example, demo, Dialog System, netxmapi.zip
demo.ex
demo.ne