Re: how to mail an attachment from a script
hi sean
to send an attachment via cron or any script
create the attachment...say /tmp/a.html
echo "this is a text msg and attachment " |
mutt -s "Testing attachment=a.html" -a /tmp/a.html
a.html can be foo.jpg too and i think it did the "right thing"...
c ya
alvin
On Sat, 15 Sep 2001, Christoph Simon wrote:
> On Fri, 14 Sep 2001 21:24:04 -0700 (PDT)
> "Sean 'Shaleh' Perry" <shalehperry@home.com> wrote:
>
> >
> > On 15-Sep-2001 dman wrote:
> > >
> > > I need to set up a script to be run by crontab. This script needs to
> > > mail a (html) file as an attachment. How can I do this? I know mutt
> > > has a '-a <file>' argument, but mail doesn't have this. This script
> > > needs to run on a FreeBSD box (that I don't have root on) that doesn't
> > > have mutt.
Reply to: