Below is an sample file. i need to send mail with file contents as message body. i tried so many ways like printf, cat, piping to mail command but all are truncating the spaces. Format is different. Please provide suggestion. how i can get an email as looks like in file.
---------------------------------------------
Description |Date|Count
Audit Entries |07-DEC-15|5
COL File |07-DEC-15|1
-----------------------------------------------