Added proper CRLF to comply smtp server rules
Improved error messages and removed unnecessary GPIO cleanup