Update email.php
This commit is contained in:
@@ -401,9 +401,9 @@ if (!class_exists('email')) {
|
|||||||
if (!empty($this->setting->get('email','smtp_hostname'))) {
|
if (!empty($this->setting->get('email','smtp_hostname'))) {
|
||||||
$smtp['hostname'] = $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');
|
$smtp['host'] = (!empty($this->setting->get('email','smtp_host')) ? $this->setting->get('email','smtp_host'): '127.0.0.1');
|
||||||
if (isset($this->setting->get('email','smtp_port'))) {
|
if (!empty($this->setting->get('email','smtp_port'))) {
|
||||||
$smtp['port'] = (int) $this->setting->get('email','smtp_port');
|
$smtp['port'] = (int)$this->setting->get('email','smtp_port');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$smtp['port'] = 0;
|
$smtp['port'] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user