added empty check for smtp_host and removed no_hostname error