port checking function changed, fixed smtps port