|
$email_altbody [FS] |
![]() ![]()
|
Specify E-Mail Alternate Body Text File
$email_altbody filename
This command specifies the filename of the text that is to form an alternate body for the e-mail message. The e-mail is built as a MIME message with Content-Type multipart/alternative.
The default macro-expansion character on all $email... commands is an ASCII grave accent character (`). The file is processed in the same way as a CopiaFacts cover sheet with macro-expansion of '`' variables. The expansion of variables may be suppressed by $email_options "nomacro".
The file is assumed to be encoded as ISO-8859-1 unless this has been overridden with $email_charset. The file is scanned for characters not in the ASCII character set, and if any are found the file will be encoded 'quoted-printable'. Otherwise the file will be sent as 'us-ascii' with 7bit encoding. This processing may be modified by the options specified on an $email_options command.
The parameter on this command is used as follows:
| filename | The filename to be used as alternate body text. The file should be a text file and will normally have a file extension of .TXT, .HTM, or .HTML. |
The $email_alttext and $email_altbody commands can be mixed in the same FS file and the alternate body text will be built from lines and files in the order they are specified.
If only a single $email_altbody command is given, the content type (text/plain or text/html) will be inferred from the file extension, the latter being used if the extension is .HTM or .HTML. If multiple commands are given, or if any $email_alttext commands are also used, the content type will be set to text/plain unless a string <html is detected in the first three lines of the combined text, in which case it will be set to text/html.
Default: no alternate message body is included
Positional Requirements: must follow an $email_body command or an $email_text command
Example:
$email_altbody `FFJOBS\00001234\messages\JOB12345.HTM
Topic url: http://www.copia.com/support/refmanual/index.html?%24email_altbody.htm