Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2000 15:18:34 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        "Dib, Allan L" <Dib.Allan.L@edumail.vic.gov.au>
Cc:        questions@freebsd.org
Subject:   Re: Sending an attachment from the command line
Message-ID:  <14860.26154.727656.990738@guru.mired.org>
In-Reply-To: <36587401@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Dib, Allan L <Dib.Allan.L@edumail.vic.gov.au> types:
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.

First - don't send HTML to the list, even if you send a plain text
copy as well. It's considered rude. Some people are using mail readers
that don't handle HTML; others are reading the digest, which looses
the MIME information needed to read the message (this is a bug in the
digester that I've PR'ed already).


> I currently use the very useful 'mail' command from the command line and from
> scripts to e-mail output of a progam. An example:
> 
> ls|mail -s "hello" dib.allan.l@edumail.vic.gov.au
> 
> will e-mail me the output of the 'ls' command with a subject line "hello".
> 
> I need to be able to e-mail a given (binary) file as an attachmentment with a
> similar kind command. I have had no luck with man pages for either sendmail or
> the 'mail' command. For example how would I e-mail someone the file
> /home/allan/test.tar.gz with one command line.
> 
> If anyone could help me with this it would be greatly appreciated. 

A quick "make search key=mime" in /usr/ports turns up
/usr/ports/converters/mpack. That should do the job for you.

	<mike



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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