Date: Wed, 31 Dec 2003 22:35:04 -0000 From: "Micheal Patterson" <micheal@tsgincorporated.com> To: "Chad Albert" <Chad.Albert@myhealthcarefirst.com>, <freebsd-questions@freebsd.org> Subject: Re: mail Message-ID: <01b501c3cfee$52390320$4df24243@tsgincorporated.com> References: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Chad Albert" <Chad.Albert@myhealthcarefirst.com> To: <freebsd-questions@freebsd.org> Sent: Wednesday, December 31, 2003 3:46 PM Subject: mail > 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? If it's a text file, just cat filename.ext |mail -s "subject" sender@address to send the contents to the target address. On the other hand, if you want to attach the file, use mailx from ports. There's an -a flag to attach files to outbound emails. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01b501c3cfee$52390320$4df24243>