added send test mail method to check if mail settings are correct.