GENERATED: FEB 13,2021 - 5:27PM
BATCH-BOT NET MAIL [V10.21.02]

Previous Page

This "CHT Batch Bot", HNDMAILNET.EXE, uses SMTP mail provided by a CHT DLL called HNDNETSMTP.DLL written in C#.

Before you use it, the application must be configured with valid email parameters the same as any other smtp email client requires configuration. This application is stand-alone but requires the DLL mentioned above be located on the target machine and registered via REGASM.EXE.

HNDMAILNET.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 CHT email template used in this application is EMBEDNETSMTPCLASSES. The CHT class underlying this template is HNDNETSMTPCLASS located in files HNDNETSMTP.INC and HNDNETSMTP.CLW.

HNDMAILNET.EXE runs from the DOS prompt or can be called from another application using Clarion RUN, or CHT''s HNDSNAPCALL class, or run from a batch file or even from a .VBS script. It is capable of sending standard SMTP email as well as SSL SMTP email as found with GMAIL, HOTMAIL and other similar services.

It accepts several command line parameters that describe the email to be sent. These parameters are as follows:

• •  SENDING:
--to
<9>[REQ] mail@address.com
--cc
<9>[OPT] mail@address.com
--bcc
<9>[OPT] mail@address.com
--subj
<9>[REQ] This is the subject line.
--file
<9>[REQ] smtpbody.txt (Contains email body)
--attach
<9>[OPT] somezip.zip (Requires full path to file)

CONFIGURING:
--config0
<9>[CFG] Set up mail configuration information #0
--config1
<9>[CFG] Set up mail configuration information #1
--config2
<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 "hndmailnet.log" located in the same directory as the hndmailnet.exe.

HELP:
--help [OPT] Pops up a help document
--silent [OPT] Suppress pop up log and help file during mult-recipient sends.

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 - Application Styling System
(0003) ApplicationSnapIns(HNDTools) 1 © CHT ApplicationSnapIns - Application Snap-In System
(0004) GlobalIncludeHNDDiskFunctions(HNDTools) 1 © CHT GlobalIncludeHNDDiskFunctions - Disk classes - HNDDisk - globally to your application.
(0005) HNDCMPControlPanel(HNDTools) 1 © CHT PROJECT BUILDER SUPPORT - Interface to the CHT Project Builder.
(0006) HandyCodeSigningExtension(HNDTools) 1 © CHT HandyCodeSigningExtension - Application Code-Signing System
(0007) HandyVersionResource(HNDTools) 1 © CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(7) Global Templates Found

1 - Procedure Template Type: HandySourceProcedure
Main ()
Count Local Template Name Qty Local Template Description
(0008) CHTBestPracticeEmbedClass(HNDTools) 1 © CHT Best Practice Embedding Assistant
(0009) EmbedNetSMTPClasses(HNDTools) 1 © CHT EmbedNetSMTPClasses - MLNET An Instance Of: HNDNetSMTPClass
(0010) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(3) Local Templates Found In Main

2 - Procedure Template Type: Splash
JumpStartSplashCHTBlue ()
Count Local Template Name Qty Local Template Description
(0011) AppBuildDateTimeStamp(HNDTools) 1 © CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0012) AppBuildNumberStamp(HNDTools) 1 © CHT AppBuildNumberStamp - An application build number or version stamp.
(0013) AppCopyRightStamp(HNDTools) 1 © CHT AppCopyRightStamp - An application copyright stamp.
(0014) HandyTellMeControl(HNDTools) 1 © CHT HandyTellMeControl - Text box control to provide a message or help text.
(0015) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(0016) ProcedureSnapIns(HNDTools) 1 © CHT ProcedureSnapIns - Application Snap-In System
(6) Local Templates Found In JumpStartSplashCHTBlue

Copyright © 1996-2021 - CHT Version: [25A.01.00]
Gus M. Creces, CHT - Clarion Handy Tools
All Rights Reserved Worldwide

chtlogo001.gif
Application Templates