pipe the message to mail eg
echo "this is the message body"|mail [EMAIL PROTECTED] -s "test email subject" On Tue, 20 Jan 2004 09:22:36 +1300 mjm159 <[EMAIL PROTECTED]> wrote: > Hi all, > > A quick question. Does anyone know how I can send an email in a > non-interactive way? All I want to do is put the contents of an entire > message into one line and post it off. If I do it like this I can call in > some bash commands (like `dmesg`). Similarly I don't want to write an expect > script to do this. > > I can do this for example: > > mail [EMAIL PROTECTED] -s test1 > > But that still expects me to fill in the message body and Cc interactively. I > can't think of another alternative. Any suggestions? If I am missing > something obvious here, please feel free to point it out. > > Thanks, > Michael. > > --- > [EMAIL PROTECTED] > Message generated in webmail. > -- Nick Rout Barrister & Solicitor Christchurch, NZ Ph +64 3 3798966 Fax + 64 3 3798853 http://www.rout.co.nz [EMAIL PROTECTED]
