Format content

Hi ,

I have to send a content of a file to mail using mailx .

when use

cat file.txt | mailx -s "subject"  abc@xyz

lines are coming in as paragraph can you tell me how send formated text.

Thanks,
Srinadh.

Not sure I understand. Please show the input, the result, and the desired output. How do you read the mail at the receiving side?