From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 00:38:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D76B916A4CE for ; Mon, 19 Jul 2004 00:38:59 +0000 (GMT) Received: from wolf.bytecraft.au.com (wolf.bytecraft.au.com [203.39.118.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 898D443D3F for ; Mon, 19 Jul 2004 00:38:58 +0000 (GMT) (envelope-from murraytaylor@bytecraftsystems.com) Received: from localhost (localhost [127.0.0.1])i6J0cv41069800; Mon, 19 Jul 2004 10:38:57 +1000 (EST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wolf.bytecraft.au.com ([127.0.0.1]) by localhost (wolf.bytecraft.au.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 69763-05; Mon, 19 Jul 2004 10:38:56 +1000 (EST) Received: from svmarshal.bytecraft.au.com ([10.0.0.4])i6J0ctAF069796; Mon, 19 Jul 2004 10:38:55 +1000 (EST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wombat.bytecraft.au.com (Not Verified[10.0.0.3]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Mon, 19 Jul 2004 10:38:55 +1000 Received: from [10.0.17.42] (wstaylorm.dand06.au.bytecraft.au.com [10.0.17.42]) by wombat.bytecraft.au.com (Postfix) with ESMTP id E70CA3F0F; Mon, 19 Jul 2004 10:38:49 +1000 (EST) From: Murray Taylor To: carla.neves@nereus.pt In-Reply-To: <200407162036.i6GKaNt11099@www.plutao.lusodigital.net> References: <200407162036.i6GKaNt11099@www.plutao.lusodigital.net> Content-Type: text/plain Organization: Bytecraft Systems Message-Id: <1090197528.91088.68.camel@wstaylorm.dand06.au.bytecraft.au.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 19 Jul 2004 10:38:49 +1000 Content-Transfer-Encoding: 7bit cc: freebsdquestions Subject: Re: How to send attached files on sendmail with mail tool? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 00:39:00 -0000 Carla, cat file | uuencode tgt_filname | mail -s "subject" test@example.com You can send .tgz, .tar.gz, .xls, .csv, ... files using this method.. Ie any file at all as the uuencode does all the necessaries to make the file into 7bit ascii. subject can be derived from shell script variables if necessary. mjt On Sat, 2004-07-17 at 06:36, Carla Neves wrote: > Hi Dear all, > I'm doing some scripts to automaticly deliver to some email accounts > Unix system printouts. I'm using sendmail on Freebsd 4.9 and the mail > tool to send my emails. What I would like to know is: is it possible > to send emails with files attached using the sendmail and the mail > tool? Which syntax should I aply to send an attached file in the > message? > > I would appreciate your help. > > P.S: I' using this syntax so far for sending emails > > mail -s "Automatic Message" recipient@example.com < The contents of the message goes here. > > E_O_M > > or to pipe stuff directly into sendmail: > > /usr/sbin/sendmail -t -oi -oem < To: recipient@example.com > Subject: Automatic Message > > The contents of the message goes here. > > As much as you like, really. > > E_O_M > > > Regards, > Carla > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > **************************************************************** > This Email has been scanned for Viruses by MailMarshal. > **************************************************************** -- Murray Taylor Special Projects Engineer --------------------------------- Bytecraft Systems & Entertainment P: +61 3 8710 2555 F: +61 3 8710 2599 D: +61 3 9238 4275 M: +61 417 319 256 E: murraytaylor@bytecraftsystems.com or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- **************************************************************** This Email has been scanned for Viruses by MailMarshal. ****************************************************************