From 10aebf2954b748df807e1fa4019342c9a7691643 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 21 Dec 2019 15:47:40 -0700 Subject: [PATCH] Update app_defaults.php --- app/email_templates/app_defaults.php | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/app/email_templates/app_defaults.php b/app/email_templates/app_defaults.php index 46d0b72b68..7cd5710ba5 100644 --- a/app/email_templates/app_defaults.php +++ b/app/email_templates/app_defaults.php @@ -359,6 +359,63 @@ $array['email_templates'][$x]['template_enabled'] = 'false'; $array['email_templates'][$x]['template_description'] = ''; + $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'b1eefbfc-c008-4c82-b93f-6a6df237aeaa'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'success_default'; + $array['email_templates'][$x]['template_subject'] = 'Subject, Fax to: ${number_dialed} SENT'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "We are happy to report the fax was sent successfully. It has been attached for your records.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + $array['email_templates'][$x]['email_template_uuid'] = '48ce4fef-e6bd-4be6-9c76-1590e8498408'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'fail_default'; + $array['email_templates'][$x]['template_subject'] = 'Fax to: ${number_dialed} has Failed'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "We are sorry the fax failed to go through. It has been attached. Please check the number \${number_dialed}, and if it was correct you might consider emailing it instead.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + $array['email_templates'][$x]['email_template_uuid'] = 'd64d9a03-affd-4dbf-ba04-5ad5accae4d9'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'fail_busy'; + $array['email_templates'][$x]['template_subject'] = 'Fax to: ${number_dialed} was Busy'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "We tried sending, but the call was busy \${fax_busy_attempts} of those times.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + $array['email_templates'][$x]['email_template_uuid'] = '29729743-28bc-4f7b-88e1-0bdf6ff33cce'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'fax'; + $array['email_templates'][$x]['template_subcategory'] = 'fail_invalid'; + $array['email_templates'][$x]['template_subject'] = 'Fax to: ${number_dialed} was Invalid'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "We tried sending, but the number entered was not a working phone number.\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + //build array of email template uuids foreach ($array['email_templates'] as $row) { if (is_uuid($row['email_template_uuid'])) {