Re: How to send messages via Mutt with no user intervention...?
On Tue, Oct 11, 2005 at 07:04:45AM -0700, Ubence Quevedo wrote:
> I'm trying to automatically send a e-Mail with a compressed
> attachment via the command line. I've gone through the motions
> manually with the command line [mutt -s "This is a test"
> user@xxxxxxxxxx -i file.tgz]. It works great, but I have to answer
> questions and do some keystrokes to send the message. I did some
> google searches and have not been able to find anything useful [or at
> all] on this subject. I want to set up a cron job to e-Mail me the
> compressed attachment every so often [every other week or monthly].
Something like this should work:
mutt -s "file attached" -a file.tgz user@xxxxxxxxxxx < /dev/null
You shouldn't need to use "push" or an alternate .muttrc to do this. If
your .muttrc is somehow interfering, you could use -F /dev/null.
w