This "CHT Batch Bot", HNDMAILMAPI.EXE, provides MAPI send capability using CHT's Clarion class-based MAPI functionality.
The CHT template illustrated in this application is called SOURCE_ EMBED_ MAPI_ FUNCTIONS. The class underlying this template is called HNDIMAIL located in files HNDIMAIL.INC and HNDIMAIL.CLW.
HNDMAILMAPI.APP source code, because it is in Clarion .APP format, is included as a standard part of the CHT toolkit, provided both in .APP format as well as ready-to-run, in .EXE format.
When you have a properly configured MAPI email client like Outlook or Windows Live Mail configured, this application is able to connect with it to send email. This application is stand-alone and requires no other CHT Dlls.
HNDMAILMAPI.EXE runs from the DOS prompt or can be called from another application using Clarion RUN, or CHT's HNDSnapCall Class, from a batch file or even from a .VBS script. It is capable of sending standard email of the type(s) configured in your default email client.
It accepts several command line parameters that describe the email to be sent. These parameters are as follows:
--to r/><9>[REQ] firstname.lastname@example.org (or multiples + semi-colons)
<9>[OPT] email@example.com (or multiples + semi-colons)
--subj r/><9>[REQ] This is the subject line.
--file r/><9>[REQ] emailbody.txt (Contains body text)
<9>[OPT] somezip.zip (Name of attachment requires full path)
All transactions such as config changes, emails or errors are logged into "hndmailmapi.log" located in the same directory as the hndmailmapi.exe.
--help Pops up a help text file hndmailmapihelp.txt
--silent Suppresses popup-help during multiple sends
MapiSendProcedureNoAttachments (Procedure Template: Source)
|(1) Class Instances Found In MapiSendProcedureNoAttachments|
Main (Procedure Template: HandySourceProcedure)
|(0) Class Instances Found In Main|
MapiSendProcedureWithOneAttachment (Procedure Template: Source)
|(2) Class Instances Found In MapiSendProcedureWithOneAttachment|
JumpStartSplash06 (Procedure Template: Splash)
|(3) Class Instances Found In JumpStartSplash06|