Fix issue with reading the content of the file for sending the email