Gerald --
...and then Gerald Manipon said...
% I am writing a script which uses mutt to create an email with an attachment
% with
% "mutt -a atfile.doc -s subject [EMAIL PROTECTED]". But it always brings up the
Goodie.
% vi screen
% to enter the message for my body. Is there a way for me to create text
% files with
% default message bodies, and use the mutt command to automatically compose an
Sure, just like every other unix mail program I've ever seen. And mutt
even has it documented for you:
6.1
...
Mutt also supports a ``batch'' mode to send prepared messages. Simply
redirect input from the file you wish to send. For example,
mutt -s "data set for run #2" [EMAIL PROTECTED] < ~/run2.dat
This command will send a message to ``[EMAIL PROTECTED]'' with a
subject of ``data set for run #2''. In the body of the message will
be the contents of the file ``~/run2.dat''.
As always, you can use /dev/null is you don't want to have any message
body, or send the input in on stdin with something like
echo "this is the useless message body" | mutt ...
% email
% without prompting me for any input? Any help will be appreciated.
You can start by checking in the manual; it has all sorts of great
information.
%
% Gerald
HTH & HAND
Boy, I hope that this is in the mutt-newbie FAQ when it comes around...
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001. There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature