GENERATED: JAN 12,2023 - 12:28PM
BATCH-BOT SMTP MAIL [V10.23.01. 27.00]

Previous Page

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:

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;
--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)

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 a help splash screen
--silent
<9>[OPT] Suppresses log and help file popups

Count Global Template Name Qty Global Template Description
(0001) AACHTControlPanel(HNDTools) 1 © CHT AACHTControlPanel - CHT Global Control Panel (hndtools.tpl)
(0002) ApplicationImagesEx(HNDTools) 1 © CHT ApplicationImagesEx - CHT Application Styling System
(0003) GlobalIncludeHNDDiskFunctions(HNDTools) 1 © CHT GlobalIncludeHNDDiskFunctions - Disk classes - HNDDisk - globally to your application.
(0004) HNDCMPControlPanel(HNDTools) 1 © CHT Project Builder Support - Interface to the CHT Project Builder.
(0005) HandyVersionResource(HNDTools) 1 © CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(5) Global Templates Found

1 - Procedure Template Type: Splash
JumpStartSplashCHTBlue ()
Count Local Template Name Qty Local Template Description
(0006) AppBuildDateTimeStamp(HNDTools) 1 © CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0007) AppBuildNumberStamp(HNDTools) 1 © CHT AppBuildNumberStamp - An application build number or version stamp.
(0008) AppCopyRightStamp(HNDTools) 1 © CHT AppCopyRightStamp - An application copyright stamp.
(0009) EmbedWindowFunctions(HNDTools) 1 © CHT EmbedWindowFunctions - HWin An Instance Of: HNDWindow
(0010) HandyTellMeControl(HNDTools) 1 © CHT HandyTellMeControl - Text box control to provide a message or help text.
(0011) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(6) Local Templates Found In JumpStartSplashCHTBlue

2 - Procedure Template Type: HandySourceProcedure
Main ()
Count Local Template Name Qty Local Template Description
(0012) CHTBestPracticeEmbedClass(HNDTools) 1 © CHT Best Practice Embedding Assistant
(0013) EmbedSMTPFunctions(HNDTools) 1 © CHT EmbedSMTPFunctions - SMTP An Instance Of: HNDSmtp
(2) Local Templates Found In Main

Copyright © 1996-2023 - CHT Version: [27A.02.00]
Gus M. Creces, CHT (Clarion Handy Tools)
All Rights Reserved Worldwide

chtlogo001.gif
Application Templates