fix horrible SMTP exception code bug