If exists use category fax from and from name

This commit is contained in:
FusionPBX 2024-01-05 17:24:08 -07:00 committed by GitHub
parent 113d97978a
commit f63524a164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -175,13 +175,13 @@
$setting = new settings(["domain_uuid" => $domain_uuid]);
//prepare the smtp from and from name variables
$email_from = $setting->get('email','smtp_from');
$email_from_name = $setting->get('email','smtp_from_name');
if (!empty($setting->get('fax','smtp_from'))) {
$email_from = $setting->get('fax','smtp_from');
$email_from = $setting->get('fax','smtp_from');
$email_from_name = $setting->get('fax','smtp_from_name');
if (!empty($email_from)) {
$email_from = $setting->get('email','smtp_from');
}
if (!empty($setting->get('fax','smtp_from_name'))) {
$email_from_name = $setting->get('fax','smtp_from_name');
if (!empty($email_from_name)) {
$email_from_name = $setting->get('email','smtp_from_name');
}
//prepare the variables to send the fax
@ -311,7 +311,7 @@
echo "response: ".$response."\n";
}
}
//set the fax file name without the extension
$fax_instance_id = pathinfo($fax_file, PATHINFO_FILENAME);