home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $PROJECT: HyperText-DataType-System
- **
- ** $VER: mail.rexx 40.3 (27.10.96)
- **
- ** $AUTHOR: Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
- **
- ** $COPYRIGHT: (C) Copyright 1996 by Stefan Ruppert, All Rights Reserved!
- **
- ** $EMAIL: Stefan.Ruppert@informatik.fh-wiesbaden.de
- **
- ** $HISTORY:
- **
- ** 27.10.96 : 040.003 : use rexxdossupport.library
- ** 21.09.96 : 040.002 : verbose option added
- ** 19.09.96 : 040.001 : initial
- **
- */
-
- Options Results
-
- Parse Arg args
-
- /* --------------------------- needed libraries --------------------------- */
-
- Call AddLib('rexxsupport.library',0,-30,0)
- Call AddLib('rexxdossupport.library',0,-30,0)
-
- /* -------------------------- customize section --------------------------- */
-
-
- mailer = 's:startup-email'
-
- subjectitem= 'SUBJECT '
- emailitem = ''
-
- /* ------------------------ end customize section ------------------------- */
-
- If ReadArgs(args,'EMAIL/A,SUBJECT,VERBOSE/S','MAIL.') Then Do
- email = Strip(mail.email)
- subject = Strip(mail.subject)
-
- emailargs = emailitem || email
- subjectargs= subjectitem || '"' || subject || '"'
-
- cmd = mailer || ' ' || emailargs || ' ' || subjectargs
-
- If mail.verbose Then Do
- Say 'EMail : ' || email
- Say 'Subject : ' || subject
- Say
- Say 'Run : ' || cmd
- End
- Else Do
- cmd = cmd || ' >NIL:'
- End
-
- Address Command cmd
- End
-
-