Add smtp connection check routine