<<< Date Index >>>     <<< Thread Index >>>

Re: File Attact Script



On 7/4/06, Jon <weatchu@xxxxxxxxx> wrote:
I want to write a script in bash, where I enter
the email address, and a name and path to a file,
and mutt sends off the file in an email.

Any syntax for this?
I just did:

echo "file file file" | mutt -a attachment -s "here's the file"
ahaning@xxxxxxxxx

And got an email with the subject "here's the file", body "file file
file" and an attachment called "attachment".

You could make a bash script that would do this, with the flags and
all, but it would probably be more complicated than the above.

-Andy