Use correct encoding and data type in mails.
Remove commented imports.
pep8 fix: line too long.