diff --git a/secure/fax_to_email.php b/secure/fax_to_email.php index 662b31ce9c..281d81cca0 100644 --- a/secure/fax_to_email.php +++ b/secure/fax_to_email.php @@ -536,7 +536,7 @@ if (!function_exists('fax_split_dtmf')) { fclose($fp); } } - else { + if ($fax_send_mode == 'enqueue') { $wav_file = ''; $response = fax_enqueue($fax_uuid, $fax_file, $wav_file, $mailto_address, $fax_uri, $fax_dtmf, $dial_string); }