+ add the type of encoding datas.
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user