Fixed Centos mailx sending body as attachment

Remove those '\r' by sed:
Example:
 ssh -t server.goyun.info 'df -h /; df -h /home' | sed "s/\r//g" | mailx -s "disk dize info" devops@goyun.info

Comments