Workaround to send email in plain text

Email appears as "noname" attachment in Gmail accounts (and probably others but I did not test on):

Content-Type: application/octet-stream
Content-Transfer-Encoding: base64

So use cat -v as a workaround

See: http://ask.fclose.com/305/plain-pipelined-content-application-octet-stream-attachment

Also recommended to apply this fix to all other server scripts for consistency reasons.