Help with mail command

Hello,

I am trying to send a .txt file with the mail command as follows:

uuencode myfile.txt myfile.txt | mail -s "Testing" myemail@somewhere.com

I receive the file, but when I try to open it, I get the results printed in one line and when there is a new line, the new line character gets printed into the file. So we want to send it as ASCII and not Binary.

Any suggestions??

THANKS!

This is likely not an issue of ASCII vs binary, but of line ending conventions. If you are opening it on a Windows or Mac computer, use an editor which can convert Unix line feeds to the local line ending convention. Or convert the file to something suitable before sending it (unix2dos would be pretty canonical I guess).

Thanks era!!