Send emails with attachments from command line

Ashley Moran ashley.moran at
Thu Dec 8 07:06:14 PST 2005

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.


Metamail needs X11 which I don't want on the server, so I've gone with mutt.

More information about the freebsd-questions mailing list