How to export Exercise files from Hadoop through email

I have saved some of my exercises in Linux and Hadoop for Hive,Scala,Spark etc. How can I export these files to my email as attachments.

You can print as pdf and save.