add smtp timeout to avoid hang
Merge pull request #95 from robin-knight/master

add smtp timeout to avoid hang