On Sat, Jan 26, 2002 at 11:08:03AM +0530, Binand Raj S. wrote: > On Saturday 26 January 2002 0:11 am, USM Bish wrote: > > #!/bin/sh > > /path/to/sendmail -t <<- -EndOfMail- > > From: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Bcc: [EMAIL PROTECTED] > > Subject: Testing script mailing > > > > This is a one line message > > > > someone > > > > -EndOf-Mail- > > Yuk. Why would anyone want to do this when there's mutt? > > mutt [EMAIL PROTECTED] -b [EMAIL PROTECTED] -c [EMAIL PROTECTED] -s "subject" -x > < /path/of/message/text > > Or, another mutt solution: > > cat template.mail > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Bcc: [EMAIL PROTECTED] > Subject: Test > > Hello, World > > mutt -H template.mail -x < /dev/null > > Or, with a shell here document, > > mutt -H - << EOF > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Bcc: [EMAIL PROTECTED] > Subject: Test > > Hello, World > EOF > > easily scriptable. > > Binand > ---end quoted text---
How true .... I was only giving a scriptable non-mua solution. If MUAs are to be used, mutt is one of the best. Even mailx and nmh would do the envisaged job. Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : Removing ^M from mails (using fetchmail) LOST #229 Tired of seeing ^M in your mailbox, on receiving mails from M$ systems ? If you use fetchmail, add the following line to your .fetchmailrc: stripcr (man fetchmail for details). ####<[EMAIL PROTECTED]>#################################### : _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
