Add the possibility to attach a file to an e-mail

Changed the email method to allow attachments of a file from the
filesystem.