<!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>&nbsp;</DIV>
<DIV>uuencode test.txt test.txt|mail -s "Attach a file" <A 
href="mailto:email@email.com">email@email.com</A></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In the meantime I will use uuencode.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks everyone!</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;&nbsp; Not sure if AIX has uuencode, but for SCO you would do 
  this:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; uuencode filename filename|mail -s "Attach a file" <A 
  href="mailto:email@email.com">email@email.com</A></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; You must list the filename twice in a row, including file 
  extenstion</DIV>
  <DIV>&nbsp;&nbsp; This will attach a file</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; i.e.&nbsp; uuencode test.txt test.txt|mail -s "Attach a 
  file" <A href="mailto:email@email.com">email@email.com</A></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; HTH</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; Scott<BR><BR></DIV>
  <DIV class=gmail_quote>On Tue, Sep 29, 2009 at 6:20 PM, Bill Campbell <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:bill@celestial.com">bill@celestial.com</A>&gt;</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>&gt;mail -s 
    "subject" senderemailaddress &lt;locationoffile<BR>&gt;<BR>&gt;The foregoing 
    works in AIX UNIX by inserting the locationoffile in the body<BR>&gt;of the 
    email.<BR>&gt;<BR>&gt;How would I add an attachment to the email? I have 
    googled this and there<BR>&gt;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. &nbsp;This works<BR>OK, but there can be issues such as 
    failing of ~/.mail isn't<BR>available or ~/.mail/sent is not writeable. 
    &nbsp;This would attach<BR>two files to the message and have text from 
    locationoffile.<BR><BR>mutt -a file1 -a files -s "subject" 
    senderemailaddress &lt;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. 
    &nbsp;It's really pretty simple.<BR><BR>Bill<BR><FONT 
    color=#888888>--<BR>INTERNET: &nbsp; <A 
    href="mailto:bill@celestial.com">bill@celestial.com</A> &nbsp;Bill Campbell; 
    Celestial Software LLC<BR>URL: <A href="http://www.celestial.com/" 
    target=_blank>http://www.celestial.com/</A> &nbsp;PO Box 820; 6641 E. Mercer 
    Way<BR>Voice: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(206) 236-1676 &nbsp;Mercer 
    Island, WA 98040-0820<BR>Fax: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(206) 
    232-9186 &nbsp;Skype: jwccsllc (206) 855-5792<BR><BR>The obscure we see 
    eventually, the completely apparent takes longer.<BR>&nbsp;-- 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>