At 2008-03-25 07:17PM, "someusernamehere" wrote:
> There is a way for send mails only with shell commands?, I mean I know
> how to send with mutt -c user@copy.com -s "subject" user@foo.bar
> its possibly only with sendmail or whatever send a mail with:
>
> * a desired subject (foobar for example)
> * a Carbon copy (Cc) destinator
> * a shadow copy (Bc) destinator
> * reading the content of a file for the body (e.g. /home/user/foo.txt)
( printf "Subject: %s\nCc: %s\nBcc: %s\n\n" "$sub" "$cc" "$bcc"
cat "$filename"
) | /usr/lib/sendmail -t -oi
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry