<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>