[NTLUG:Discuss] mail or mailx question on attachments
Chris Cox
cjcox at acm.org
Thu Nov 21 14:36:41 CST 2002
Fred James wrote:
> mail or mailx (mail on Linux seems to be mailx elsewhere)
> attachments
>
> Does anyone know how to send attachments with mail/mailx? Attachments
> such as a PDF file.
> Thanks in advance for any suggestions.
>
mimencode them... or better, use mailto if installed on
your system instead of mail/mailx.
It will go something like
$ mailto
To: cjcox at acm.org
Subject: My test message
Here is comes!!
~*
Please choose which kind of data you wish to insert:
0: A raw file, possibly binary, of no particular data type.
1: Raw data from a file, with you specifying the content-type by hand.
Enter your choice as a number from 0 to 1: 1
If you want to include non-textual data from a file, enter the file name.
To include the output of a command, enter "|" followed by the command.
If you do not want to include anything, just press ENTER (RETURN).
> ddns-tools-2.tar.gz <--- this is my binary file name (Chris)
Enter the MIME Content-type value for the data from file ddns-tools-2.tar.gz
(type '?' for a list of locally-valid content-types):
application/x-gzip <--- specify a mime type or hit ? for a list)
^D
And off it goes!!
More information about the Discuss
mailing list