splited the check for smtp_connect() and smtp_authendicate()