Fix an undeclared variable. Why the linter told nothing?
Style correction.
Correct and finalize email settings.