Fixing bug: deployment email was not sent