Implemented function to test email settings

Signed-off-by: pgnunes <pgh.nunes@gmail.com>