fix issue 153
Merge pull request #167 from Dunemaster/smtpCrash

fix issue 153