Small scripted mailing
Kurt Wall
kwall
Fri Jun 30 21:52:36 PDT 2006
On Fri, Jun 30, 2006 at 12:59:41PM -0700, Kevin O'Gorman wrote:
> I don't want to learn another mail-list program. I just want to send
> out a roster
> to a select group of friends. It's formatted, so has to be an attachment.
> I cannot use mailx because it doesn't do attachments. I don't like pine because
> I cannot figure out how to completely automate this -- it goes into compose
> mode with most things set up, but requires my intervention, and also because
> I cannot figure out how to set the Subject: header automatically.
>
> Is there a simple mailer that does all this?
mutt:
echo $MSG | mutt -x -s $SUBJECT -a $ATTACHMENT $ADDR
$SUBJECT: message subject
$ATTACHMENT: file to attach
$MSG: the body of the message
$ADDR: the recipient
Kurt
More information about the Linux-users
mailing list