Fix SMTP result checking