Reading content/type of file

Hello,
In order to mail how do i find out the content/type of the file
attached…

Thank you.