Don't queue the responses, rather use the options available in the mail command. I use mutt, but mail has the similar options. In the following mutt example $email contains the email address(es) and $subject contains the subject, and mutt.include is the body of the email text. There is also a -a flag for attachments.
/usr/bin/mutt $email -s $subject < /some_directory/mutt.include
-----Original Message-----
From: Linux on 390 Port [mailto:
LINUX-390@VM.M...] On Behalf Of Scully, William P
Sent: Thursday, April 19, 2012 2:11 PM
To:
LINUX-390@VM.M...
Subject: EXTERNAL: Rexx/Regina on Linux
I'd like a Rexx exec on Linux to send an email. My first attempt at this is:
#!/usr/bin/regina
Queue 'This Is My Subject'
Queue 'This is the body of the email text.'
Queue '.' /* exit mail's input mode */
'mail
scully@ca.c...'
Exit
The pre-queued responses for the mail command don't help and mail ends up prompting me interactively.
Does anyone know how I might queue replies to the Linux mail command?
Thanks in advance for any advice on this topic.
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to
LISTSERV@VM.M... with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to
LISTSERV@VM.M... with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
opensubscriber is not affiliated with the authors of this message nor responsible for its content.