ot: mail flag for attachment in unix
scooter6 at gmail.com
scooter6 at gmail.com
Wed Sep 30 06:09:19 PDT 2009
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20090930/da88c2a4/attachment.html
More information about the Filepro-list
mailing list