Add a comment for conditions when to send the email

This commit is contained in:
FusionPBX
2026-04-17 16:16:33 +00:00
committed by GitHub
parent 163cb0b372
commit 490ab337f7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -592,6 +592,7 @@
} }
unset($sql, $parameters, $row); unset($sql, $parameters, $row);
//send email if the subject and body are not empty
if (!empty($email_subject) && !empty($email_body)) { if (!empty($email_subject) && !empty($email_body)) {
//replace variables in email body //replace variables in email body
$email_body = str_replace('${domain}', $domain_name, $email_body); $email_body = str_replace('${domain}', $domain_name, $email_body);
+1
View File
@@ -456,6 +456,7 @@
} }
unset($sql, $parameters, $row); unset($sql, $parameters, $row);
//send email if the subject and body are not empty
if (!empty($email_subject) && !empty($email_body)) { if (!empty($email_subject) && !empty($email_body)) {
//replace variables in email body //replace variables in email body
$email_body = str_replace('${domain}', $domain_name, $email_body); $email_body = str_replace('${domain}', $domain_name, $email_body);