[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail -v my@my.com < in.tar.gz -- HELP



On Tue, 5 Feb 2002, louie miranda wrote:

>hi for ex: i have this file in.tar.gz format, i want to insert it when
>sending email thru:
>
>mail -v myrecpt@domain.com < in.tar.gz
>
>-- when i rcv this email, it reads binary format and attached in the msg
>body..
>uhm, how can i make it as an attachement?

Not sure if this will make it an attachment, but you could try this

uuencode myfile.tgz myfile.tgz
                    ^^^^^^^^^^ -- name as will appear on the attachment

This should spit out to stdout. So call mail as

uuencode myfile.tgz myfile.tgz | mail -s "Subject Line" foo@bar.com

Hope this helps

Cameron Kerr
-- 
cameron.kerr@paradise.net.nz
http://homepages.paradise.net.nz/~cameronk/




Reply to: