Update email.php
This commit is contained in:
parent
7f2934ff24
commit
4b9ff10eef
|
|
@ -401,9 +401,9 @@ if (!class_exists('email')) {
|
|||
if (!empty($this->setting->get('email','smtp_hostname'))) {
|
||||
$smtp['hostname'] = $this->setting->get('email','smtp_hostname');
|
||||
}
|
||||
$smtp['host'] = (strlen($this->setting->get('email','smtp_host')) ? $this->setting->get('email','smtp_host'): '127.0.0.1');
|
||||
if (isset($this->setting->get('email','smtp_port'))) {
|
||||
$smtp['port'] = (int) $this->setting->get('email','smtp_port');
|
||||
$smtp['host'] = (!empty($this->setting->get('email','smtp_host')) ? $this->setting->get('email','smtp_host'): '127.0.0.1');
|
||||
if (!empty($this->setting->get('email','smtp_port'))) {
|
||||
$smtp['port'] = (int)$this->setting->get('email','smtp_port');
|
||||
}
|
||||
else {
|
||||
$smtp['port'] = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue