mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update email.php
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user