Correct mail configs and sending emails