Previous | Next | Contents | Index |
Retrieve one or more files from the server.
SEND file-spec extension
Qualifiers Defaults /ENCODING=encoding None /MODE=mode /MODE=TEXT
name
Required parameter specifying the file or files to send. This parameter can include a directory specification, but must include a file name. The usual shell wildcard characters,*
and?
, are supported.extension
Optional parameter which can be used to specify the extension of the file to be sent.
The
SEND
command sends the requested files back to you via electronic mail. Wildcards may be used in the file-spec parameter to specify multiple files. Each file is sent as a separate message.The optional extension parameter is supplied for compatibility with BITNET's
LISTSERV
file servers. When supplied, a period followed by the value of this parameter will be appended to the value of the file-spec parameter to form the actual file name to use. For instance, the command
is interpreted as a request for the file
SEND newtags descriptnewtags.descript
and is equivalent to the command
SEND newtags.descriptLarge files may automatically be split into multiple smaller files prior to transmission; see the description of the
MAXIMUM
command for specific details. When theMAXIMUM
command is used, it must be specified prior to theSEND
command; e.g.,
MAXIMUM BYTES 10000 MAXIMUM LINES 1000 SEND /book/chapter*.txtFiles may be read in a variety of ways; this can be controlled with the
MODE
command or the/MODE
qualifier. Files containing non-text information must be encoded in some way; theENCODING
command or the/ENCODING
qualifier control the encoding used. When using theMODE
andENCODING
commands, be sure to specify them before theSEND
command requiring their use.Use the
DIRECTORY
andINDEX
commands to obtain information on available files which may be obtained with theSEND
command.
/ENCODING=encoding
The/ENCODING
qualifier specifies the encoding to use for this particular file. It does not establish any default for futureSEND
commands, but it overrides any default set with theENCODING
command for this particularSEND
command. The value is required and must be one of the values theENCODING
command accepts./MODE=mode
The/MODE
qualifier specifies the mode to use for this particular file. It does not establish any sort of default for futureSEND
commands, but it overrides any default set with theMODE
command for this particular SEND command. The value is required and must be one of the values theMODE
command accepts.
#1 |
---|
% mail mailserv@example.com SEND fonts/README.TXT [CTRL/D] % |
In this example, a simple request with a single command is sent to the mail server mailserv@example.com. This single command requests that the file
fonts/README.TXT
be sent.
#2 |
---|
% mail mailserv@example.com MAXIMUM BYTES 10240 SEND/MODE=BLOCK/ENCODING=BASE64 fonts/adobe35.pfb.Z [CTRL/D] % |
In this example, a large binary file is being requested. The
/MODE
and/ENCODING
qualifiers are used to request that the file be interpreted as raw binary data and sent in an encoded format. TheMAXIMUM
command is used to fragment the encoded file into several small messages, each no larger than 10K (10,240 bytes).
%MAILSERV-W-FLK, file currently locked by another user |
One or more of the requested files is not currently accessible. Try again later.
%MAILSERV-W-INSFPRM, missing command parameters |
You failed to supply the name of the files to send. You must supply a file specification. Resend the command with a file specification.
%MAILSERV-W-IVKEYW, unrecognized keyword - check validity and spelling |
You specified an unknown encoding or reading mode. Resend the command using a legal encoding or reading mode with the
/ENCODING
or/MODE
qualifier.
%MAILSERV-W-NOFILES, no files found |
Supplied file specification does not match any available files. Use the
DIRECTORY
command to obtain a listing of the available files.
%MAILSERV-F-NOFILESERV, file service is not enabled |
The mail server is not configured to operate as a file server.
%MAILSERV-W-PRV, insufficient privilege or file protection violation |
You are not allowed access to one or more of the requested files.
%MAILSERV-W-VALREQ, missing qualifier or keyword value |
You failed to supply a value with the
/ENCODING
or/MODE
qualifier. Resend the command with a value specification.
Previous | Next | Contents | Index |