PMDF User's Guide
OpenVMS Edition


Previous Next Contents Index

8.4.3 Sending a File

You can send a file either from DCL with the PMDF MAIL command, or from within PMDF MAIL with the SEND command. See Section 8.4.1 for directions on sending files from DCL.

From within PMDF MAIL, use the SEND command. The message that you send can be just a file, or a message with one or more files attached to it. In either case, PMDF MAIL automatically tries to encode any files that might require special handling (e.g., binary files), based on analysis of the file name. This process doesn't always work, so it might be necessary to specify /BLOCK to force binary file handling.

PMDF uses the MIME message format and encodings (RFC 1521) to construct messages containing files. Such messages can be decoded and read with a MIME-aware mailer or user agent such as PMDF and PMDF MAIL.

For instance, to send the two files TEST1.DAT and TEST2.DAT to the address bob@example.com, use the command


EMAIL> SEND TEST1.DAT,TEST2.DAT
To: bob@example.com
Subject: Two files you wanted
EMAIL> 

You can, if you want, include a note with the message, perhaps explaining which file is which. To do this, use the /INSERT qualifier:


EMAIL> SEND/INSERT TEST1.DAT,TEST2.DAT
To: bob@example.com
Subject: Two files you wanted
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit: 
Bob,
 
Below, please find attached the two files which you requested. The
first attachment is the data from the first wind tunnel mockup; the
the second attachment the data from the second mockup.
 
Sue
[CTRL/Z]
EMAIL> 

To edit the message before actually sending it, use the /EDIT qualifier. That is, use the SEND/EDIT command. When in the editor you should see a section reading


[**** Insert text here ****] 
Delete that line and insert your message starting where that line was. Once you are finished in the editor and are ready to send the message, save your edits and exit from the editor. From EDT, the default editor, this is accomplished by pressing CTRL/Z and entering the EXIT command. To cancel the SEND operation, use the QUIT command instead of the EXIT command.


Previous Next Contents Index