GENERATED: JUL 19,2019 - 1:10PM
BATCH-BOT SMTP MAIL [V10.19.07]

Previous Page
This "CHT Batch Bot" application 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.

Further it is dependent on 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.EXE 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:

SENDING:
--to  r/><9>[REQ] mail@address.com;mail@address2.com;
--cc  r/><9>[OPT] mailcc@address.com;mailcc@address2.com;
--bcc  r/><9>[OPT] mailbcc@address.com;mailbcc@address2.com;
--from
<9>[OPT] address of sender, must be same domain
--subj  r/><9>[REQ] This is the subject line.
--body  r/><9>[OPT] This is a short email body.
<9>Optional if --file parameter is used.
--file  r/><9>[OPT] emailbody.txt (Alternate to --body for lengthy body text)
<9>Optional if --body parameter is used.
--attach  r/><9>[OPT] somezip.zip (Name of attachment requires full path)
--mail  r/><9>[OPT] mailfile.txt (INI file with tags To=, Subj=, Body=, Attach= )

CONFIGURING:
--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
--set0
<9>[CFG] Select and use configuration #0
--set1
<9>[CFG] Select and use configuration #1
--set2
<9>[CFG] Select and use configuration #2

LOGGING:
All transactions such as config changes, emails or errors are logged into "hndmailsmtp.log" located in the same directory as the hndmailsmtp.exe.

HELP:
--help  r/><9>[OPT] Pops up this splash help screen

 
PROCEDURE (1):
JumpStartSplashCHTBlue (Procedure Template: Splash)
Count Instance Class Type Methods Header File
(0001) HTellMe HNDWindow HND 215 HNDWINDO.INC
(0002) Toolbar ToolbarClass ABC 6 ABTOOLBA.INC
(0003) ThisWindow WindowManager ABC 39 ABWINDOW.INC
(3) Class Instances Found In JumpStartSplashCHTBlue


 
PROCEDURE (2):
Main (Procedure Template: HandySourceProcedure)
Count Instance Class Type Methods Header File
(0001) SMTP HNDSmtp HNDINET 159 HNDSMTP.INC
(1) Class Instances Found In Main


Copyright © 1996-2019
Gus M. Creces and The Clarion Handy Tools Page.
All Rights Reserved Worldwide

chtlogo001.gif Classes By Procedure In HNDMAILSMTP.APP