From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Clar Newsgroups: gmane.os.tru64.managers Subject: SUMMARY : Script to send e-mail with attached files Date: Mon, 28 Oct 2002 18:12:58 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <01cf01c27ea5$43c43170$4978e4a0@supelec.fr> References: <01c001c27ea0$9f78dac0$4978e4a0@supelec.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035825041 7650 80.91.224.249 (28 Oct 2002 17:10:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2002 17:10:41 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 186DPP-0001z1-00 for ; Mon, 28 Oct 2002 18:10:35 +0100 Original-Received: (qmail 8271 invoked by uid 5); 28 Oct 2002 17:11:35 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8262 invoked by uid 49493); 28 Oct 2002 17:11:35 -0000 Original-Received: from Daniel.Clar@supelec.fr by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-5.4/5.0):. Processed in 0.398598 secs); 28 Oct 2002 17:11:35 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 28 Oct 2002 17:11:35 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4P00666BRAKO@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 28 Oct 2002 12:11:35 -0500 (EST) Original-Received: from supelec.supelec.fr (supelec.supelec.fr [160.228.120.192]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4P00LO9BR3OR@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 28 Oct 2002 12:11:28 -0500 (EST) Original-Received: from cripcdc (localhost [127.0.0.1]) by supelec.supelec.fr (8.10.2/jtpda-5.3.1) with ESMTP id g9SHBOo498555 ; Mon, 28 Oct 2002 18:11:24 +0100 (MET) In-reply-to: <01c001c27ea0$9f78dac0$4978e4a0@supelec.fr> Original-To: 'Daniel Clar' , tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:2232 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2232 The original posting was : > Hello, > > Is there a way to write a script which is able to send an e-mail with an > included binary file ( a .zip by example) given as parameter ? > > It seems that mailx is not able to do that but perharps I'm wrong. > > Regards > > Daniel Clar > Computer Operations Manager > Supelec > France > The answers came so quickly and in particular the first one giving the solution.... Daniel, 'mutt' does this. (www.mutt.org) Something like: echo "hi there" | mutt -s $subject -a /path/to/attachment who@where.com Maybe others can do it too, but mutt is what I use. -- -- Paul A. Sand pas@unh.edu Thank you also to : Peter.Stern@weizmann.ac.il Jonathan Williams [jonathw@shubertorg.com] Kraft, Wolfram [Wolfram.Kraft@de.bp.com] bryan.mills@lynx.co.uk jay nash [mgn321@yahoo.com] Oisin McGuinness [oisin@sbcm.com] Thanks Daniel