refactor code
fix rubocop warnings
add ability to send mail from stage
Merge pull request #7 from DamirMakhmutov/refactor-code-84987676

Refactor code [finished #84987676 #84987678]