Sending text files as attachments

Hi,

I have used the following command to send a text file "archiver.log" as attachment.

(cat mail.log; uuencode archiver.log archiver.log; ) | mailx -s "Failure" asd@a.com :

But in the mail i am not getting new lines in the text file.New Lines are getting replaced with some weird characters.

Pls help.

Thanks,
Radhika.

Search this forum and look at this :

http://www.unix.com/showthread.php?t=28504

Thanks...

Actually changing archiever.log to archiver.doc worked...

(cat mail.log; uuencode archiver.log archiver.doc; ) | mailx -s "Failure" asd@a.com :