Operating System - HP-UX
1850239 Members
3441 Online
104053 Solutions
New Discussion

Re: Mailx attachments ( I know!!! RTFF's! )

 
SOLVED
Go to solution
Charles Harris
Super Advisor

Mailx attachments ( I know!!! RTFF's! )

Dear all,

Just a quick question - does anyone know of a way to uuencode multiple attachments to one email via mailx - ie a variation on the uuencode f f |mailx -m -s "test" Someone@somewhere.net theme?

I appologise for posting this, it's just that I'm short on time and have waded through about a thousand forum answers so far, without sucess!

Any comments tips warmly welcomed as ever!!

no RTFF's though ;-)

Cheers,


-ChaZ-
3 REPLIES 3
Thierry Poels_1
Honored Contributor
Solution

Re: Mailx attachments ( I know!!! RTFF's! )

Hi,

( cat preface.txt; uuencode file1 file1; uuencode file2 file2) | mailx username

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
harry d brown jr
Honored Contributor

Re: Mailx attachments ( I know!!! RTFF's! )

for i in `echo filename1 filename2 filename3 ...`
do
uuencode $i $i.txt
done|mailx -m -s "test" username@whereever.com


Works like a champ!!!

live free or die
harry
Live Free or Die
Charles Harris
Super Advisor

Re: Mailx attachments ( I know!!! RTFF's! )

Thanks Gents! - It works like a charm for me too!!