From owner-freebsd-questions Sat Jan 29 11:46: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id E43DC14A10 for ; Sat, 29 Jan 2000 11:46:01 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id NAA17534; Sat, 29 Jan 2000 13:45:27 -0600 (CST) (envelope-from dan) Date: Sat, 29 Jan 2000 13:45:27 -0600 From: Dan Nelson To: Veaceslav Revutchi Cc: Victor M , questions@FreeBSD.ORG Subject: Re: appended mail Message-ID: <20000129134527.A16937@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from "Veaceslav Revutchi" on Sat Jan 29 19:13:05 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 29), Veaceslav Revutchi said: > On Sat, 29 Jan 2000, Victor M wrote: > > I can send message to the peer by putting the command in my program: > > > > cat some_message_file.txt | mail my_peer > > > > But this message will be sent in the body of the mail, and I want > > it to be sent as appended file, not in the body. It can be useful > > if you send not readable files, e.g. graphical images. > > > > Any thoughts? > > Try sendmail -t I don't think that's what he wants. He wants a Mime attachment, and neither sendmail nor /usr/bin/mail can do that. I have used mutt to send binary attachments from scripts: echo Shift-Double-click on the attachment to open it in Excel | /usr/local/bin/mutt -s "Monthly report" -a log.csv user@host.com you can attach as many files as you want with multiple -a flags. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message