Format disorder after email with attachment

Hello

My script is to email a textfile(abc) in unix. I open abc.txt using window notepad. All the "Enter Key"(line break) are found missed. However, it is no problem using window wordpad.

uuencode abc abc.txt | mailx -s "Email Subject" someone@email.com

How can I adjust the above command to fix the problem with using notepad to open?

Thank you very much

Your attachment is Unix-based, so Notepad isnt able to handle the bare linefeeds (wordpad is marginally better and can).

Youll need to either sed, tr or unix2dos the file before attaching it if you want it to come over in DOS-ready mode.