Mail files handled by stxsmail must satisfy the following requirements:
The files are text files.
Each line ends (EOL) with CRLF(\r\n).
Similar to the end of a line, each file ends (EOF) with CRLF(\r\n).
The mail header contains at least one "From:" and one "To:".
A sample mail file is shown below.
The mail file contains a mail header and text, which are separated by one blank line.
General mail header items can be specified in the mail header.
The basic mail header items are described below.
Item | Description |
---|---|
From | Specify a sender mail address. |
To | Specify a destination mail address. |
Cc | Specify a CC destination mail address. |
Bcc | Specify a BCC destination mail address. |
Subject | Describe the title of the mail. |
Be sure to confirm that "From" and "To" are correctly specified in the mail header.
If "From" or "To" is omitted, stxsmail posts an error and terminates.
The other mail header items can be omitted.
Specify mail addresses for "From", "To", "Cc", and "Bcc" only as follows:
Example: From: mgr@foo.bar.com
Be sure not to include a non-mail address. See the following examples:
Example 1: From: < mgr @foo.bar.com> Example 2: From: "Administrator" < mgr @foo.bar.com> Example 3: From: manager (mgr @foo.bar.com)
Multiple mail addresses can be specified on one line for "To", "Cc", and "Bcc" as follows:
Example: Cc: admin@foo.bar.com, root@foo.bar.com
A mail address can be specified over multiple lines for "To", "Cc", and "Bcc" as follows:
Example: Cc: admin@foo.bar.com Cc: root@foo.bar.com
A total of 16 mail addresses can be specified for "To", "Cc", and "Bcc".
General mail headers not described above can be specified, however, stxsmail does not guarantee operating results. Mail header items not described above are sent by stxsmail as is to the mail server.