Also fixes minor issues like spelling / sentence mistakes. Refactored some variable names, and made it actually show error message on the page instead of only in logs. Now email settings have select input for mail method and encryption.