VMS Help  —  MAIL  Examples
    1.$ MAIL
      MAIL>

      This MAIL command invokes MAIL to process commands
      interactively.

    2.$ MAIL/SUBJECT="New Project" PROJECT.DOC JONES,SMITH,ADAMS

      This MAIL command specifies that the file named PROJECT.DOC
      is to be sent to users JONES, SMITH, and ADAMS, with a subject
      description of New Project in the heading.

    3.$MAIL/SUBJECT="Vacation Policy Change" NEWSLETTR "@USERS"

      This MAIL command invokes MAIL to send the file NEWSLETTR.TXT
      to all the users named in the file USERS.DIS. The subject
      description is Vacation Policy Change.

    4.$ MAIL/EDIT
      MAIL> SEND
      To: EARTH::MAX
      Subj: Experiment
         .
         .
         .
      [End of file]

      Buffer: MAIL              | Write | Insert | Forward |

      This example shows how to use the /EDIT qualifier with the MAIL
      command enabling you to create and edit a new message. Press
      the Do key to return to the command prompt (Command:).  Type
      EXIT to send the message or QUIT to end the editing session
      without sending the message.

    5.$ MAIL/EDIT=(REPLY,FORWARD)
      MAIL> 14
         .
         .
         .
      MAIL> REPLY
      To: EARTH::MAX
      Subj: Experiment
      [End of file]

      Buffer: MAIL              | Write | Insert | Forward |

      This example shows how to use the /EDIT qualifier specifying
      the keywords REPLY and FORWARD, which enable you to edit
      any message you forward or to which you reply. To reply to
      message 14, enter REPLY and edit your text. Press the Do key to
      return to the line-editing prompt and to send the reply to user
      EARTH::MAX.

    6.$ MAIL/PERSONAL_NAME ="Cindy L." TEST.DAT VROMAN

      This example shows the user's personal name defined as Cindy
      L. in the current message containing the file TEST.DAT sent to
      user VROMAN.

    7.$ MAIL/SELF experiments.dat smith,jones

      This example shows how to use the /SELF qualifier to send a
      copy of the message containing the file named EXPERIMENTS.DAT
      back to you and to users SMITH and JONES.

    8.$ MAIL/SIGNATURE_FILE=BUSINESS_CARD.SIG HELLO.DOC JONES

      This example shows how to append a text file
      (BUSINESS_CARD.SIG) to a mail message containing the file
      HELLO.DOC. User JONES will receive a single mail message
      containing both files.

    9.$ MAIL/SUBJECT="Life in the Big City" newfile.txt JOHNSON

      This example shows how to use the /SUBJECT qualifier to send a
      file named NEWFILE.TXT with a subject heading of "Life in the
      Big City." Use quotation marks around the subject heading to
      include more than one word, to print in lowercase letters, or
      to include any spaces or nonalphanumeric characters.
Close Help