Added method to check email connectivity