[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: send email from commandline



On 04-04-27 10:40 -0500, Rick Weinbender wrote:
> 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.
> 

Hi Rick,

man mail will tell you about the mail command 

it sounds like you will also be interested in the Here Documents section
of man bash for your script (assuming it's a bash script)




Reply to: