From owner-freebsd-questions@FreeBSD.ORG Thu Dec 8 15:23:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 DCB0A16A41F for ; Thu, 8 Dec 2005 15:23:23 +0000 (GMT) (envelope-from freebsd@henriklidstrom.se) Received: from pne-smtpout2-sn1.fre.skanova.net (pne-smtpout2-sn1.fre.skanova.net [81.228.11.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9925043D7B for ; Thu, 8 Dec 2005 15:23:09 +0000 (GMT) (envelope-from freebsd@henriklidstrom.se) Received: from mailgw.henriklidstrom.se (83.250.79.110) by pne-smtpout2-sn1.fre.skanova.net (7.2.069.1) id 4394B97C000E64A5; Thu, 8 Dec 2005 16:22:57 +0100 Received: from localhost (localhost.henriklidstrom.se [127.0.0.1]) by mailgw.henriklidstrom.se (Postfix) with ESMTP id 93EA6BBD9; Thu, 8 Dec 2005 16:22:55 +0100 (CET) Received: from mailgw.henriklidstrom.se ([127.0.0.1]) by localhost (mailgw.henriklidstrom.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96487-08; Thu, 8 Dec 2005 16:22:50 +0100 (CET) Received: from localhost (localhost.henriklidstrom.se [127.0.0.1]) by mailgw.henriklidstrom.se (Postfix) with ESMTP id CE300B8D5; Thu, 8 Dec 2005 16:22:50 +0100 (CET) Received: from gw.telecomputing.se (gw.telecomputing.se [84.17.192.7]) by mailgw.henriklidstrom.se (Horde MIME library) with HTTP; Thu, 08 Dec 2005 16:22:50 +0100 Message-ID: <20051208162250.kyxgptdxc4scoog0@mailgw.henriklidstrom.se> Date: Thu, 08 Dec 2005 16:22:50 +0100 From: freebsd@henriklidstrom.se To: ashley.moran@codeweavers.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) / FreeBSD-6.0 X-Virus-Scanned: amavisd-new at henriklidstrom.se Cc: freebsd-questions@freebsd.org Subject: SV: Send emails with attachments from command line X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 15:23:24 -0000 > -----Ursprungligt meddelande----- > Fr=E5n: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] F=F6r Ashley Moran > Skickat: den 8 december 2005 16:05 > Till: freebsd-questions@freebsd.org > =C4mne: Re: Send emails with attachments from command line > > On Thursday 08 December 2005 13:35, Igor Robul wrote: > > On Thu, Dec 08, 2005 at 12:16:34PM +0000, Ashley Moran wrote: > > > Does anyone know how to send emails with attachments from the > > > command line? I've replaced sendmail with ssmtp and I can send plain > > > messages with mail, but I don't know how to go about preparing > MIME > > encoded emails. Any pointers? > > > > Look at > > mail/metamail > > > > also "mutt" can send mail with attachments in batch mode. > > > Thanks > > Metamail needs X11 which I don't want on the server, so I've gone with mu= tt. I sometimes use: #uuencode filetosend.ext filetosend.ext | mail -s "File" user@domain.tld But not sure if thats correct. /Henrik