ot: mail flag for attachment in unix

Dennis Malen dmalen at malen.com
Wed Sep 30 10:39:13 PDT 2009


Thanks for the responses. AIX did not have mutt. The following did work as suggested by Scott:

uuencode test.txt test.txt|mail -s "Attach a file" email at email.com

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.

In the meantime I will use uuencode.

Thanks everyone!

Dennis Malen
516.479.5912
  ----- Original Message ----- 
  From: scooter6 at gmail.com 
  To: bill at celestial.com ; filepro-list at lists.celestial.com 
  Sent: Wednesday, September 30, 2009 9:09 AM
  Subject: Re: ot: mail flag for attachment in unix


     Not sure if AIX has uuencode, but for SCO you would do this:

     uuencode filename filename|mail -s "Attach a file" email at email.com

     You must list the filename twice in a row, including file extenstion
     This will attach a file

     i.e.  uuencode test.txt test.txt|mail -s "Attach a file" email at email.com

     HTH

     Scott


  On Tue, Sep 29, 2009 at 6:20 PM, Bill Campbell <bill at celestial.com> wrote:

    On Tue, Sep 29, 2009, Dennis Malen wrote:
    >mail -s "subject" senderemailaddress <locationoffile
    >
    >The foregoing works in AIX UNIX by inserting the locationoffile in the body
    >of the email.
    >
    >How would I add an attachment to the email? I have googled this and there
    >does not seem to be any flag or reference on how to add an attachment.


    Mutt uses the -a option to attach files to messages.  This works
    OK, but there can be issues such as failing of ~/.mail isn't
    available or ~/.mail/sent is not writeable.  This would attach
    two files to the message and have text from locationoffile.

    mutt -a file1 -a files -s "subject" senderemailaddress <locationoffile

    I finally bit the bullet though and figured out how to properly
    build multi-part MIME messages with python when writing a script
    to generate and e-mail OpenVPN files.  It's really pretty simple.

    Bill
    --
    INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
    URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
    Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
    Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

    The obscure we see eventually, the completely apparent takes longer.
     -- Edward R. Morrow

    _______________________________________________
    Filepro-list mailing list
    Filepro-list at lists.celestial.com
    http://mailman.celestial.com/mailman/listinfo/filepro-list





------------------------------------------------------------------------------


  _______________________________________________
  Filepro-list mailing list
  Filepro-list at lists.celestial.com
  http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20090930/10f080fc/attachment-0001.html 


More information about the Filepro-list mailing list