From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8da831e43e6c990c X-Google-Attributes: gid1164f8,public From: mathog@seqaxp.bio.caltech.edu Subject: Re: How to send internet mail automatically in OpenVMS? Date: 1998/06/08 Message-ID: <6lh0l9$p7@gap.cco.caltech.edu>#1/1 X-Deja-AN: 360703807 References: <357bb875.29002537@news.pacific.net.sg> Organization: Biology Division, Caltech, Pasadena CA 91125 Reply-To: mathog@seqaxp.bio.caltech.edu Newsgroups: comp.sys.dec In article <357bb875.29002537@news.pacific.net.sg>, netsurfer@nospam.singaporemail.com (Kevin Lai) writes: >I am trying to write a script to post internet email whenever my >server encounter some kinds of system outages. > >But currently my system (DEC Alpha OpenVMS 6.2) does not allow me to >send mail (via SMTP) unmanned and automatically, and it seems that to >send mail out to internet, i need to do it interactive-way. > A few details would have been in order. The following works fine on our system (Multinet, maybe you have to change the smtp% part for other TCP/IP transports): $ subject = "this is a test" $ file = somefile.txt $ address = "fred@nowhere.notreal.com" $ mail/subject="''subject'" 'file' smtp%"""''address'""" Put this code snippet into your DCL procedure, and you should be all set. Regards, David Mathog mathog@seqaxp.bio.caltech.edu Manager, sequence analysis facility, biology division, Caltech ************************************************************************** * Affordable VMS? See: http://seqaxp.bio.caltech.edu/www/pcvms.html * **************************************************************************