howto mail an attached file in console

ivand58 said:
hi
how can i send an email with attached binary file from the console
Depends on whether you want MIME or uuencode or something else.

Here's what I do to send a file grolsch.btl to a user me@thirsty.nl:
% elm -A grolsch.btl -s "Have a beer!" [email]me@thirsty.nl[/email]

Hope this helps,

Alphons

P.S. If you don't need text in the message's body, prepend with echo ""|
 
Or:

Code:
mail/biabam               A command-line attachment mailer

Biabam Is A Bash Attachment Mailer

To use BIABAM use the following syntax:

echo [body] | biabam attachment1,[attachment2,attachmentN] [-s subject] \
              recipient1[,recipient2,recipientN]

Example:
echo "Here are the tarballs you requested" | biabam \
     foobar-0.7.8.tar.gz,coolapp-0.4.3.tar.gz,otherapp-4.3.0.tar.gz \
     -s "Answer to your request" john@doe.org,john2@doe.org

If no text is piped into biabam, it will wait for text on standard input
(finish with CTRL-D)
 
Back
Top