Re: send email from commandline
"Jeffrey L. Taylor" wrote:
> Quoting Rick Weinbender <lsrwein@central-ph.k12.mo.us>:
> > What is the correct syntax for sending
> > mail from the command line.
> > (server runs qmail and mutt)
> > *
> > I found the following, but doesn't seem to work(below)
> >
> > mail -s "some subject" user1@domain.com
> >
> > I want to incorporate this into a script but when I enter it
> > at the commandline it acts like it is needing more.
> >
> > Thanks,
> > -Rick
> >
> >
>
> Are you giving it any input?
>
> echo "body" | mail -s "some subject" user1@domain.com
>
> or
>
> mail -s "some subject" user1@domain.com < test.file
>
> Jeffrey
>
***********************************
Thanks to everyone for the help. It works now.
-Rick
Reply to: