Added functionality to send attachments over email when file is uploaded via form