How to attach attachments to mail in command line? current mail
command syntax does not allows it.
Your help will be highly appreciated.
: How to attach attachments to mail in command line? current mail
: command syntax does not allows it.
From http://www.pcunix.com/SCOFAQ/scotec6.html#mailxmutt
Using mail from the command line: if you want to send true attachments
(that show up in graphical mail clients as attachments), you need
something like "mutt" (available from Skunkware).
If it's just arbitrary text or a file you want to send, and don't care
about it looking like a real attachment, you can use ordinary mail and do
mailx -s "This is it" someone@someplace < somefile
or
echo "text more text" | mailx somebody somebodyelse fr...@fred.com
You can use uuencode to send a binary file the same way, and some mail
clients may even display that as they would a "real" attachment.
However: that's NOT an attachment. Every time somebody asks this question
on the newsgroup, someone is sure to insist that it is, but a simple
visual examination of actual messages should show them their error.
The confusion is, of course, that some mail clients will act as though
the uuencoded text were a proper attachment. That's fine if the people
you are sending to use one of those clients, but if there is any chance
they do not, be safe: use Mutt.
--
to...@aplawrence.com Unix/Linux resources: http://aplawrence.com
Inexpensive phone/email support
Download Free SCO Skills Test: http://pcunix.com/skilltests.html
"Ragothaman" <rago...@yahoo.com> a écrit dans le message de
news:5bc6392c.03060...@posting.google.com...
(sigh).
No. For the 18th gazillion time, that's not an attachment.
http://www.pcunix.com/SCOFAQ/scotec6.html#mailxmutt
<to...@aplawrence.com> a écrit dans le message de
news:bbq7bd$mdr$3...@pcls4.std.com...
Man, you should see the vioent thread on this yesterday in the filePro
mailing list...
--
JP
Many people refuse to use crap like Outhouse Express...
--
JP
Do a google search for mpack. I believe it will do what you require and
it compiles fine under SCO Openserver 5.0.6.
Regards, Robert Kovacic.
What is mpack, and why prefer it to using mutt?
--
JP
========================================
MPACK(1) MPACK(1)
NAME
mpack - pack a file in MIME format
SYNOPSIS
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c con-
tent-type ] file address ...
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c con-
tent-type ] -o outputfile file
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c con-
tent-type ] -n newsgroups file
DESCRIPTION
The mpack program encodes the the named file in one or more MIME mes-
sages. The resulting messages are mailed to one or more recipients,
written to a named file or set of files, or posted to a set of news-
groups.
OPTIONS
[deletia - wjv]
========================================
That's mpack, but even though I have it here I also prefer mutt.
Bill
--
Bill Vermillion - bv @ wjv . com
Thanks
Oh, that's that stupid out of date Skunkware mutt. I forgot about that.
JP has source at ftp://ftp.jpr.com and I have a binary he compiled from
that at ftp://aplawtence.com/pub/mutt_osr5.tar.Z
: Oh, that's that stupid out of date Skunkware mutt. I forgot about that.
: JP has source at ftp://ftp.jpr.com and I have a binary he compiled from
: that at ftp://aplawtence.com/pub/mutt_osr5.tar.Z
aargh!
ftp://aplawrence.com/pub/mutt_osr5.tar.Z
It's in the graphics library at Skunkware, but it's a silly thing, since
whoever compiled mutt for Skunkware should never have used ncurses; SCO's
native curses libaray is perfectly adequate.
Try my compilation, Mutt.OSR5.tar.bz2, in the /pub directory of
ftp.jpr.com.
--
JP
: It's in the graphics library at Skunkware, but it's a silly thing, since
: whoever compiled mutt for Skunkware should never have used ncurses; SCO's
: native curses libaray is perfectly adequate.
And that version is the one I had other troubles with too.
: Try my compilation, Mutt.OSR5.tar.bz2, in the /pub directory of
: ftp.jpr.com.
--
Another post has answered what mpack is.
I prefer it over mutt because it provides the facility to do one single
job, mime attachments. I believe in the unix philosophy of chaining
simple filter commands and I thought the original poster was asking for
that and not a fully fledged mail client that happened to also meet his
needs.
Regards, Robert Kovacic
Yes!
I need the utility that can get the following as its arguments and
send the mail in a snap:
From address, sender's name, attachment files, body text, email
address.
I have downloaded and installed mpack and found that it satisfies my
requirement.
My heartful thanks to all who have guided throughout to find the right
utility.
Ragothaman
> It's in the graphics library at Skunkware, but it's a silly thing, since
> whoever compiled mutt for Skunkware should never have used ncurses; SCO's
> native curses libaray is perfectly adequate.
"adequate" is correct; however people using mutt tend to want to be able
to resize their window, and use default colors. But that's old stuff
(3-4 years). Current mutt users want UTF-8 support (but none of the
packages appear to support that).
Does SCO's curses do that yet?
--
Thomas E. Dickey <dic...@radix.net> <dic...@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com