Modified fake SMTP to allow for error type specification