fixed spelling mistake
adjusting mail code to work
Merge pull request #1 from tansaku/master

typo fix and email config