Update send.php

Spelling correction and use domain_uuid to find settings
This commit is contained in:
FusionPBX 2024-01-24 10:58:12 -07:00 committed by GitHub
parent 657cbb1b48
commit 2d8f591534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -153,9 +153,10 @@
unset($parameters);
//get the email queue settings
$setting = new settings();
$setting = new settings(["domain_uuid" => $domain_uuid]);
$smtp_from = $setting->get('email', 'smtp_from');
$smtp_from_name = $setting->get('email', 'smtp_from');
$save_response = $setting->get('email_queue', 'save_response');
//debug information
if (!empty($debug) && $debug == 'true') {
@ -178,7 +179,7 @@
$message .= "smtp_from needs to be set in Default Settings\n";
}
if (!is_array($email_array)) {
$message .= "emails_address\n";
$message .= "email_address\n";
}
if (empty($smtp_from)) {
$message .= "template_category\n";
@ -259,3 +260,4 @@
}
?>