diff --git a/secure/fax_to_email.php b/secure/fax_to_email.php index 1201b0063a..777fee4d93 100644 --- a/secure/fax_to_email.php +++ b/secure/fax_to_email.php @@ -557,7 +557,7 @@ if (!function_exists('fax_split_dtmf')) { } //get the email template from the database - if (isset($email_address) && strlen($email_address) > 0) { + if (isset($fax_email) && strlen($fax_email) > 0) { $sql = "select template_subject, template_body from v_email_templates "; $sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) "; $sql .= "and template_language = :template_language ";