SimpleMail

The command SimpleMail offers a simpler interface compared to the command Mail. This command offers parameters that are commonly used by e-mail clients.

Note

SimpleMail is implemented as a script component, which is part of the built-in ITP/Server script library. The script for SimpleMail is available in the subfolder Examples of the folder Scripts in the ITPWork folder. Refer to the section Script Component Examples for more information on how to use these examples.

Usage
SimpleMail
      To (...) 
      From(...) 
      File (...) 
      Host (...) 
      Port (...) 
      CC (...) 
      BCC (...) 
      ReplyTo (...) 
      Subject (...) 
      Attachments (...) 
Parameters

To: Required.
A Comma-separated list of recipients.

From: Required.
The e-mail address of the sender.

File: Required.
File containing the body of the e-mail message. This file must contain ASCII text and have the .txt extension.

Host: Required.
The SMTP host.

Port: Optional.
Port on which the SMTP host will be contacted. Defaults to the standard SMTP port (port 25).

CC: Optional.
Comma-separated list of recipients who will receive a carbon copy. These recipients are listed in the header on the CC: line. Defaults to an empty list.

BCC: Optional.
Comma-separated list of recipients who will receive a blind carbon copy. These recipients are not listed in the header. Defaults to an empty list.

ReplyTo: Optional.
The e-mail address to which replies should be directed. (Defaults to From)

Subject: Optional.
Subject line of the e-mail. Defaults to an empty line.

Attachments: Optional Defaults to an empty list.
A string containing a comma (,) separated list of documents that ITP/Server will attach to the e-mail message as MIME attachments.
The first two of these attachments are the alternative bodies of the email using the following rules:

 

File extension first file

File extension second file

Body alternative sent: TXT/HTML*

TXT

HTML

Body alternative sent: TXT/HTML*

HTML

TXT

Body alternative sent: TXT

TXT

Not Html

* Which of the provided alternative bodies is shown depends on the settings of the mail client.

Refer to section Sending e-mail with attachments or MIME enhanced e-mail for more information.

Inline images in HTML body

Inline images are supported (Content_ID header support). See for a discussion chapter HTML inline images Content-ID MIME header support.