Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2005 12:45:15 +0300
From:      Igor Robul <igorr@speechpro.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Send emails with attachments from command line
Message-ID:  <20051209094515.GB878@sysadm.stc>
In-Reply-To: <200512081504.46197.ashley.moran@codeweavers.net>
References:  <200512081216.34417.ashley.moran@codeweavers.net> <20051208133543.GA91095@sysadm.stc> <200512081504.46197.ashley.moran@codeweavers.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 08, 2005 at 03:04:46PM +0000, Ashley Moran wrote:
> 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 mutt.
This is because it depends on XPM library. I have removed it manually
and metamail works fine on my X11-less server :-)
I use both mutt and metamail because metamail can "embed" content, while
mutt does "simple" attachment.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051209094515.GB878>