Support for file extension for attachments

...il client will only download the file. With .txt, I can open them in the client