To send an e-mail from the PROMOTIC application, it is possible to use the functions of
Windows OS itself. Or use the
API interface of a suitable mail program or service.
CDO.Message
is an
ActiveX object that is part of
Windows OS. It allows you to use a simple interface and, upon successful login to the
SMTP server, send an e-mail in text or HTML format with an attachment. The downside is that it does not support some higher forms of authentication. This technology is used in
Preconfiguration "Sending the e-mails by the application".
PowerShell
Windows PowerShell is more advanced successor of the command line. See
How to use PowerShell. It also allows to send e-mails in both text and HTML format with attachment after authentication on the
SMTP server. And like the
CDO.Message, it does not support some higher forms of authentication at this moment. This technology is used in
Preconfiguration "Sending the e-mails by the application".
cURL
cURL is a computer software project providing a library (
libcurl) and a command-line tool (
cURL) for downloading files using various network protocols. The name stands for
"Client for URL", or
"Curl URL Request Library". It supports a number of common protocols:
HTTP,
HTTPS,
FTP,
FTPS,
LDAP,
RTMP,
Gopher,
DICT,
Telnet,
IMAP,
POP3,
SMTP, and
RTSP. The project is written in C, cross-platform and released under the MIT licence. As of December 2017, the
cURL command-line tool is shipped directly with Windows 10 by MICROSOFT. This technology is used in
Preconfiguration "Sending the e-mails by the application".
Thunderbird
Thunderbird is a client application for managing emails, calendars and contacts. It supports all kinds of authentication on
SMTP server. It would also allow you to pre-fill the address and content of the email you are sending from the command line (and also from of the PROMOTIC application) using parameters. The disadvantage is that the e-mail prepared in this way cannot be sent without manual confirmation. This technology is used in
Preconfiguration "Sending the e-mails by the application".