fixed an undefined value when smtp is on and use_ssl is not set