Example code for emailing attachment