<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff size=2>The 
other suggestion, to use the Perl MIME packages, would probably be better in the 
</FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff size=2>long 
run. </FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006></SPAN> </DIV>
<DIV><SPAN class=930530122-30032006></SPAN><SPAN class=930530122-30032006><FONT 
face=Arial color=#0000ff size=2>I'm not sure, but I think the use of a uuencoded 
file as a MIME hunk, is kind of a</FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff size=2>quasi 
hack.  But it has worked for me almost everywhere I've tried it.  
</FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff size=2>I 
think I did have problems getting GroupWise to accept it though, maybe 
other</FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff size=2>email 
clients would also object.</FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff 
size=2>Chris</FONT></SPAN></DIV>
<DIV><SPAN class=930530122-30032006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> rhn-users-bounces@redhat.com 
  [mailto:rhn-users-bounces@redhat.com]<B>On Behalf Of </B>Bill 
  Watson<BR><B>Sent:</B> Wednesday, March 29, 2006 5:19 PM<BR><B>To:</B> 'Red 
  Hat Network Users List'<BR><B>Subject:</B> RE: [rhn-users] What is the 
  simplest way to use command line(mailorsendmail) with an 
  attachment?<BR><BR></FONT></DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff size=4>I 
  tried:</FONT></SPAN></DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff 
  size=4>uuencode pdf/300.pdf page300.pdf|mailx -s "This is the subject for page 
  300" <A 
  href="mailto:bill@magicdigits.com">bill@magicdigits.com</A></FONT></SPAN></DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff 
  size=4></FONT></SPAN> </DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff size=4>and 
  life is good! A couple of hiccups in that the 2nd parameter on uuencode (name 
  of file) will add .dat if you do not specify the extension. WinXP doesn't deal 
  with that so well. Also having the file to attach actually exist (where you 
  say it does) helps.</FONT></SPAN></DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff 
  size=4></FONT></SPAN> </DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff 
  size=4>Thanks for your help, this is the good stuff that manuals often forget 
  to cover!</FONT></SPAN></DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff 
  size=4>Bill Watson</FONT></SPAN></DIV>
  <DIV><SPAN class=531074523-29032006><FONT face=Tahoma color=#0000ff size=4><A 
  href="mailto:bill@magicdigits.com">bill@magicdigits.com</A></FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV></DIV>
    <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
    face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
    rhn-users-bounces@redhat.com [mailto:rhn-users-bounces@redhat.com] <B>On 
    Behalf Of </B>Howard, Chris<BR><B>Sent:</B> Wednesday, March 29, 2006 3:22 
    PM<BR><B>To:</B> Red Hat Network Users List<BR><B>Subject:</B> RE: 
    [rhn-users] What is the simplest way to use command line (mailorsendmail) 
    with an attachment?<BR><BR></FONT></DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2>One way to do it:</FONT></SPAN></DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2>uuencode filename.txt  filename.txt | mailx -s"here is that 
    file"  <A 
    href="mailto:otherguy@mail.address">otherguy@mail.address</A></FONT></SPAN></DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2>Most email clients will show filename.txt as an 
    attachment.</FONT></SPAN></DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=558192123-29032006><FONT face=Arial color=#0000ff 
    size=2>Chris</FONT></SPAN></DIV>
    <DIV><SPAN class=558192123-29032006></SPAN> </DIV>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
      size=2>-----Original Message-----<BR><B>From:</B> 
      rhn-users-bounces@redhat.com [mailto:rhn-users-bounces@redhat.com]<B>On 
      Behalf Of </B>Bill Watson<BR><B>Sent:</B> Wednesday, March 29, 2006 4:07 
      PM<BR><B>To:</B> 'Red Hat Network Users List'<BR><B>Subject:</B> 
      [rhn-users] What is the simplest way to use command line (mail orsendmail) 
      with an attachment?<BR><BR></FONT></DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4>I have read the sendmail documents that I could find and can only 
      conclude that I am clueless or that attachments on emails are beyond 
      diffilcult.</FONT></SPAN></DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4></FONT></SPAN> </DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4>Is there a tool laying around that can properly package an email 
      attachment onto an email and send it via a command line 
      protocol?</FONT></SPAN></DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4></FONT></SPAN> </DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4>Thanks in advance!</FONT></SPAN></DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4>Bill Watson</FONT></SPAN></DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4><A 
      href="mailto:bill@magicdigits.com">bill@magicdigits.com</A></FONT></SPAN></DIV>
      <DIV><SPAN class=984525922-29032006><FONT face=Tahoma color=#0000ff 
      size=4></FONT></SPAN> </DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>