<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks for the responses. AIX did not have mutt.
The following did work as suggested by Scott:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>uuencode test.txt test.txt|mail -s "Attach a file" <A
href="mailto:email@email.com">email@email.com</A></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Fairlight suggested that uuencode may be a problem.
Is uuencode unstable and something I should not rely on? And if so, is there
anything else I should use.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the meantime I will use uuencode.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks everyone!</FONT></DIV>
<DIV> </DIV>
<DIV>Dennis Malen<BR>516.479.5912</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=scooter6@gmail.com
href="mailto:scooter6@gmail.com">scooter6@gmail.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=bill@celestial.com
href="mailto:bill@celestial.com">bill@celestial.com</A> ; <A
title=filepro-list@lists.celestial.com
href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 30, 2009 9:09
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: ot: mail flag for attachment
in unix</DIV>
<DIV><BR></DIV>
<DIV> Not sure if AIX has uuencode, but for SCO you would do
this:</DIV>
<DIV> </DIV>
<DIV> uuencode filename filename|mail -s "Attach a file" <A
href="mailto:email@email.com">email@email.com</A></DIV>
<DIV> </DIV>
<DIV> You must list the filename twice in a row, including file
extenstion</DIV>
<DIV> This will attach a file</DIV>
<DIV> </DIV>
<DIV> i.e. uuencode test.txt test.txt|mail -s "Attach a
file" <A href="mailto:email@email.com">email@email.com</A></DIV>
<DIV> </DIV>
<DIV> HTH</DIV>
<DIV> </DIV>
<DIV> Scott<BR><BR></DIV>
<DIV class=gmail_quote>On Tue, Sep 29, 2009 at 6:20 PM, Bill Campbell <SPAN
dir=ltr><<A
href="mailto:bill@celestial.com">bill@celestial.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV class=im>On Tue, Sep 29, 2009, Dennis Malen wrote:<BR>>mail -s
"subject" senderemailaddress <locationoffile<BR>><BR>>The foregoing
works in AIX UNIX by inserting the locationoffile in the body<BR>>of the
email.<BR>><BR>>How would I add an attachment to the email? I have
googled this and there<BR>>does not seem to be any flag or reference on
how to add an attachment.<BR><BR></DIV>Mutt uses the -a option to attach
files to messages. This works<BR>OK, but there can be issues such as
failing of ~/.mail isn't<BR>available or ~/.mail/sent is not writeable.
This would attach<BR>two files to the message and have text from
locationoffile.<BR><BR>mutt -a file1 -a files -s "subject"
senderemailaddress <locationoffile<BR><BR>I finally bit the bullet though
and figured out how to properly<BR>build multi-part MIME messages with
python when writing a script<BR>to generate and e-mail OpenVPN files.
It's really pretty simple.<BR><BR>Bill<BR><FONT
color=#888888>--<BR>INTERNET: <A
href="mailto:bill@celestial.com">bill@celestial.com</A> Bill Campbell;
Celestial Software LLC<BR>URL: <A href="http://www.celestial.com/"
target=_blank>http://www.celestial.com/</A> PO Box 820; 6641 E. Mercer
Way<BR>Voice: (206) 236-1676 Mercer
Island, WA 98040-0820<BR>Fax: (206)
232-9186 Skype: jwccsllc (206) 855-5792<BR><BR>The obscure we see
eventually, the completely apparent takes longer.<BR> -- Edward R.
Morrow<BR></FONT>
<DIV>
<DIV></DIV>
<DIV
class=h5>_______________________________________________<BR>Filepro-list
mailing list<BR><A
href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</A><BR><A
href="http://mailman.celestial.com/mailman/listinfo/filepro-list"
target=_blank>http://mailman.celestial.com/mailman/listinfo/filepro-list</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Filepro-list mailing
list<BR>Filepro-list@lists.celestial.com<BR>http://mailman.celestial.com/mailman/listinfo/filepro-list<BR></BLOCKQUOTE></BODY></HTML>