Send email from a script

There is a command and a script command available to send email from within a script. The following section provides additional explanation on how to use the commands.

KCM Core is able to send email through any SMTP server.

The following three types of email messages can be sent:

  1. An email containing only text
  2. An email containing text and one or more binary attachments
  3. A complete, formatted email including all headers and attachments

The email sent by KCM Core should be readable by any MIME-enhanced email client.

Due to the nature of the SMTP protocol, the header of the email is split in two components:

  1. The sender and recipient information must be provided to the Mail command (see Mail).
  2. The other information in the email header, such as Subject, Reply-To, and so on, must be provided in an ASCII text file.