if smtp fails, give feedback with returncode