HP OpenVMS Systems

ask the wizard
Content starts here

SMTP MAIL, DCL Programming?

» close window

The Question is:

We currently run TCPware for OpenVMS v5.4. Can someone tell me if it is
 possible to write some DCL to automatically send out an SMTP mail message to a
 specified address? If so, how do I code this?

The Answer is :

  Please contact Process Software for assistance on TCPware.
  For OpenVMS MAIL and for TCP/IP Services for OpenVMS, the command
  to send a mail message is MAIL.
    $ MAIL filename username
  Since the target username for an SMTP user contains an at-sign (and
  the at-sign has special meaning to DCL), you must quote a target
  username containing an at-sign.  For instance:
    $ MAIL/SUBJECT="Hello" NLA0: "user@host"
  As to how you code DCL, please see the available DCL documentation,
  such as the OpenVMS User's Guide.  Also please see the bibliographic
  information in the OpenVMS FAQ for pointers to various books on
  OpenVMS-related subjects.

answer written or last revised on ( 13-AUG-2001 )

» close window