+ add the type of encoding datas.

This commit is contained in:
wangyidong
2011-05-03 02:35:56 +00:00
parent c9eaf26ccd
commit 5a299aaaa3
2 changed files with 2 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ if($config->mail->mta == 'smtp')
$config->mail->smtp->auth = true; // Need auth or not.
$config->mail->smtp->host = ''; // The smtp server host address.
$config->mail->smtp->port = ''; // The smtp server host port.
$config->mail->smtp->secure = ''; // The type to encode datas, 'ssl' or 'tls' allowed
$config->mail->smtp->username = ''; // The smtp user, may be a full email adress.
$config->mail->smtp->password = ''; // The smtp user's password.
}

View File

@@ -56,6 +56,7 @@ class mailModel extends model
$this->mta->Username = $this->config->mail->smtp->username;
$this->mta->Password = $this->config->mail->smtp->password;
if(isset($this->config->mail->smtp->port)) $this->mta->Port = $this->config->mail->smtp->port;
if(empty($this->config->mail->smtp->secure))$this->mta->SMTPSecure = strtolower($this->config->mail->smtp->secure);
}
/**