Fix issue with emails not being sent
Fixed var check failing
Merge pull request #5 from sunnyratilal/master

Fix cap check