Update fax_to_email.php

This commit is contained in:
FusionPBX 2022-02-07 15:28:40 -07:00 committed by GitHub
parent a94009b5a9
commit 4c4fef83c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -605,16 +605,6 @@ if (!function_exists('fax_split_dtmf')) {
//send the email
if (isset($fax_email) && strlen($fax_email) > 0) {
//add the attachments
if (strlen($fax_file_name) > 0) {
if ($pdf_file && file_exists($pdf_file)) {
$mail->AddAttachment($pdf_file); // pdf attachment
}
else {
$mail->AddAttachment($fax_file); // tif attachment
}
}
//add the attachment
if (strlen($fax_file_name) > 0) {
$email_attachments[0]['type'] = 'file';