From owner-freebsd-questions@FreeBSD.ORG Thu Dec 8 13:36:58 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 6A5E416A41F for ; Thu, 8 Dec 2005 13:36:58 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from speechpro.com (speech-tech-2.ip.PeterStar.net [81.3.190.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4669143D78 for ; Thu, 8 Dec 2005 13:36:18 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from sysadm.stc ([192.168.2.26]) by s1.stc with esmtp (Exim 4.53 (FreeBSD)) id 1EkLwP-000HAF-8B for freebsd-questions@freebsd.org; Thu, 08 Dec 2005 16:36:09 +0300 Received: from localhost.stc ([127.0.0.1] helo=sysadm.stc) by sysadm.stc with esmtp (Exim 4.54 (FreeBSD)) id 1EkLvz-000Nl1-P7 for freebsd-questions@freebsd.org; Thu, 08 Dec 2005 16:35:43 +0300 Received: (from igorr@localhost) by sysadm.stc (8.13.4/8.13.3/Submit) id jB8DZhNc091326 for freebsd-questions@freebsd.org; Thu, 8 Dec 2005 16:35:43 +0300 (MSK) (envelope-from igorr) Date: Thu, 8 Dec 2005 16:35:43 +0300 From: Igor Robul To: freebsd-questions@freebsd.org Message-ID: <20051208133543.GA91095@sysadm.stc> References: <200512081216.34417.ashley.moran@codeweavers.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512081216.34417.ashley.moran@codeweavers.net> User-Agent: Mutt/1.5.11 X-Archived: Yes Subject: Re: 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 13:36:58 -0000 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.