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

Previous Page

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:

SENDING:
--to  r/><9>[REQ] mail@address.com (or multiples + semi-colons)
--cc
<9>[OPT] mail@address.com (or multiples + semi-colons)
--subj  r/><9>[REQ] This is the subject line.
--file  r/><9>[REQ] emailbody.txt (Contains body text)
--attach
<9>[OPT] somezip.zip (Name of attachment requires full path)

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

HELP:
--help Pops up a help text file hndmailmapihelp.txt
--silent Suppresses popup-help during multiple 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) 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) HandyCodeSigningExtension(HNDTools) 1 © CHT HandyCodeSigningExtension - Application Code-Signing System
(0006) HandyVersionResource(HNDTools) 1 © CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(6) Global Templates Found

1 - Procedure Template Type: Source
MapiSendProcedureNoAttachments (STRING xToAddr, <STRING xCCAddr>, STRING xSubject, STRING xBody, *STRING xRtnMessage, BYTE xIsHtml=False), BYTE, PROC
Count Local Template Name Qty Local Template Description
(0007) EmbedObject(HNDTools) 1 © CHT EmbedObject - NOT GENERATED An Instance Of: HNDBuffer
(0008) Source_EmbedMAPIFunctions(HNDTools) 1 © CHT Source_EmbedMAPIFunctions - MAPI An Instance Of HNDIMail.
(2) Local Templates Found In MapiSendProcedureNoAttachments

2 - Procedure Template Type: HandySourceProcedure
Main ()
Count Local Template Name Qty Local Template Description
(0009) CHTBestPracticeEmbedClass(HNDTools) 1 © CHT Best Practice Embedding Assistant
(1) Local Templates Found In Main

3 - Procedure Template Type: Source
MapiSendProcedureWithOneAttachment (STRING xToAddr, <STRING xCCAddr>, STRING xSubject, STRING xBody, STRING xAttachment, *STRING xRtnMessage, BYTE xIsHtml=False), BYTE, PROC
Count Local Template Name Qty Local Template Description
(0010) EmbedObject(HNDTools) 1 © CHT EmbedObject - NOT GENERATED An Instance Of: HNDBuffer
(0011) Source_EmbedMAPIFunctions(HNDTools) 1 © CHT Source_EmbedMAPIFunctions - MAPI An Instance Of HNDIMail.
(2) Local Templates Found In MapiSendProcedureWithOneAttachment

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

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

chtlogo001.gif
Application Templates