Previous | Contents | Index |
Specify the file encoding to use.
ENCODING encoding
encoding
Required parameter specifying the file encoding to use. The available encodings are:8BIT
,7BIT
,BASE32
,BASE64
,CBASE64
(gzip compressedBASE64
),BASE85
,BINHEX
(encoding only, not the BINHEX file format),BTOA
,HEXADECIMAL
,PATHWORKS
,QUOTED_PRINTABLE
,UUENCODE
, andCUUENCODE
(gzip compressedUUENCODE
).
Binary files cannot be transmitted directly as electronic mail; they must first be encoded into a "printable" format. This, of course, means that they must be decoded upon receipt. The
ENCODING
command is used to specify the encoding to be applied to files requested with theSEND
command. When selecting an encoding, be sure to select an encoding which you can decode. If your mail is handled by PMDF, then you can decode any of the encodings offered by PMDF mail servers.The encoding specified with the
ENCODING
command applies to all subsequent SEND commands in the same message. It may be overridden with a subsequentENCODING
command or, on a per command, basis with theSEND
command's/ENCODING
qualifier. And, of course, encodings established in previous messages sent to the server have no effect on subsequent messages which you might send.The
BASE64
andQUOTED_PRINTABLE
encodings are described in RFC 2045 (MIME, Part One). TheHEXADECIMAL
encoding is a simple hexadecimal encoding of the data. The data is encoded in 8 bit byte order. Each 8 bit byte is represented with two characters; the first character describes the high four bits and the second describes the low four bits. The uuencode encoding is compatible with the popularuuencode
anduudecode
utilities.
BASE64
is usually the best encoding to use: it is most likely to survive any mangling that might occur as the mail message works its way through the networks to you (e.g., line wrapping, character set translation, space stripping, etc.).
The commands,
set the default encoding to
ENCODING BASE64 MODE BLOCK SEND gif/boats*.gif SEND/MODE=TEXT gif/index.txtBASE64
and the default file reading mode toBLOCK
. Any files matching the specificationgif/boats*.gif
will be sent using these defaults. However, the filegif/index.txt
will be sent as an ordinary text file owing to the use of the/MODE=TEXT
qualifier.
%MAILSERV-W-INSFPRM, missing command parameters |
You failed to supply the name of the encoding to use. Resend the command with a valid encoding name specified.
%MAILSERV-W-IVKEYW, unrecognized keyword - check validity and spelling |
You specified an unknown encoding. Resend the command with a valid encoding name specified.
Previous | Next | Contents | Index |