Fixed smtp connection issue