mailx is almost certainly NOT doing any formatting of intput cat-ed into it.
Your best bet would be to run fmt on the input before sending to mailx, eg:
fmt -w 160 file.txt | mailx -s 'your data, formatted' somebody@someplace