This "CHT Batch Bot", HNDMAILSMTP.EXE uses CHT Native SMTP mail. It is not dependent on the host hardware having a MAPI-compliant email client. This application requires Clarion's CLARUNEXT.DLL but is otherwise stand-alone.
HNDMAILSMTP.EXE requires correct configuration of a valid SMTP email setup with UserName, Password, Email Server and Email Return Address. Our template and SMTP classes provide a configuration function with user-controllable registry location setttings.
HNDMAILSMTP.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.
The email template illustrated is EMBEDSMTPFUNCTIONS. The CHT class underlying this template is HNDSMTP located in files HNDSMTP.INC and HNDSMTP.CLW.
HNDMAILSMTP.EXE runs from the DOS prompt or can be called from another application using Clarion RUN. 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;email@example.com;
--cc r/><9>[OPT] firstname.lastname@example.org;email@example.com;
--bcc r/><9>[OPT] firstname.lastname@example.org;email@example.com;
--subj r/><9>[REQ] This is the subject line.
--file r/><9>[REQ] emailbody.txt (Contains email body)
--attach r/><9>[OPT] somezip.zip (Name of attachment requires full path)
--config0 r/><9>[CFG] Set up mail configuration information #0
--config1 r/><9>[CFG] Set up mail configuration information #1
--config2 r/><9>[CFG] Set up mail configuration information #2
<9>[CFG] Select and use configuration #0
<9>[CFG] Select and use configuration #1
<9>[CFG] Select and use configuration #2
All transactions such as config changes, emails or errors are logged into "hndmailsmtp.log" located in the same directory as the hndmailsmtp.exe.
--help r/><9>[OPT] Pops up a help splash screen
<9>[OPT] Suppresses log and help file popups
JumpStartSplashCHTBlue (Procedure Template: Splash)
|(3) Class Instances Found In JumpStartSplashCHTBlue|
Main (Procedure Template: HandySourceProcedure)
|(1) Class Instances Found In Main|