mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update fax_to_email.php
This commit is contained in:
@@ -605,16 +605,6 @@ if (!function_exists('fax_split_dtmf')) {
|
|||||||
|
|
||||||
//send the email
|
//send the email
|
||||||
if (isset($fax_email) && strlen($fax_email) > 0) {
|
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
|
//add the attachment
|
||||||
if (strlen($fax_file_name) > 0) {
|
if (strlen($fax_file_name) > 0) {
|
||||||
$email_attachments[0]['type'] = 'file';
|
$email_attachments[0]['type'] = 'file';
|
||||||
|
|||||||
Reference in New Issue
Block a user