Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2004 12:32:07 +1100
From:      Gautam Gopalakrishnan <ggop@madras.dyndns.org>
To:        Chad Albert <Chad.Albert@myhealthcarefirst.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mail
Message-ID:  <20040101013207.GA79770@madras.dyndns.org>
In-Reply-To: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med>
References:  <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 31, 2003 at 03:46:33PM -0600, Chad Albert wrote:
> I am writing a script that mails me when certain events occur.  I am
> using mail(1) to notify me by email when some things happen.  I have
> read the man page and I don't see a way to attach a file, does anyone
> know how to use mail(1) to attach a file?

I don't know about mail, but you can do it easily with mutt.

cat textfile | mutt -s "subject" -a attachment address

hth
Gautam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040101013207.GA79770>