diff --git a/app/email_logs/email_test.php b/app/email_logs/email_test.php
index 79cdc32722..2c5d1f254f 100644
--- a/app/email_logs/email_test.php
+++ b/app/email_logs/email_test.php
@@ -92,7 +92,6 @@
$email_from_name = $_SESSION['email']['smtp_from_name']['text'];
//send email
- //ob_start();
//$sent = !send_email($email_recipient, 'Test Message', $email_body, $email_error, null, null, 3, 3, $email_attachments) ? false : true;
//$email_response = ob_get_clean();
@@ -107,8 +106,12 @@
$email->debug_level = 3;
$email->method = 'direct';
$sent = $email->send();
+ $email_response = $email->response;
//$email_error = $email->email_error;
+//show the response
+ echo $email_response;
+
//show additional information
echo "
\n";
diff --git a/app/email_queue/app_config.php b/app/email_queue/app_config.php
index f7daa45995..e03811271d 100644
--- a/app/email_queue/app_config.php
+++ b/app/email_queue/app_config.php
@@ -5,7 +5,7 @@
$apps[$x]['uuid'] = '5befdf60-a242-445f-91b3-2e9ee3e0ddf7';
$apps[$x]['category'] = 'system';
$apps[$x]['subcategory'] = 'email';
- $apps[$x]['version'] = '2.10';
+ $apps[$x]['version'] = '2.11';
$apps[$x]['license'] = 'Member';
$apps[$x]['url'] = 'http://www.fusionpbx.com';
$apps[$x]['description']['en-us'] = '';
@@ -163,8 +163,8 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
$z++;
- $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'email_debug';
- $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'email_substatus';
+ $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'email_response';
+ $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'email_debug';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
//$apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
$z++;
diff --git a/app/email_queue/app_languages.php b/app/email_queue/app_languages.php
index 244ae29512..2c6c1104a9 100644
--- a/app/email_queue/app_languages.php
+++ b/app/email_queue/app_languages.php
@@ -461,6 +461,26 @@
$text['description-email_action_after']['sv-se'] = '';
$text['description-email_action_after']['uk-ua'] = '';
+ $text['label-email_response']['en-us'] = 'Response';
+ $text['label-email_response']['ar-eg'] = '';
+ $text['label-email_response']['de-at'] = '';
+ $text['label-email_response']['de-ch'] = '';
+ $text['label-email_response']['de-de'] = '';
+ $text['label-email_response']['es-cl'] = '';
+ $text['label-email_response']['es-mx'] = '';
+ $text['label-email_response']['fr-ca'] = '';
+ $text['label-email_response']['fr-fr'] = '';
+ $text['label-email_response']['he-il'] = '';
+ $text['label-email_response']['it-it'] = '';
+ $text['label-email_response']['nl-nl'] = '';
+ $text['label-email_response']['pl-pl'] = '';
+ $text['label-email_response']['pt-br'] = '';
+ $text['label-email_response']['pt-pt'] = '';
+ $text['label-email_response']['ro-ro'] = '';
+ $text['label-email_response']['ru-ru'] = '';
+ $text['label-email_response']['sv-se'] = '';
+ $text['label-email_response']['uk-ua'] = '';
+
$text['label-email_retry_count']['en-us'] = 'Retry';
$text['label-email_retry_count']['ar-eg'] = '';
$text['label-email_retry_count']['de-at'] = '';
diff --git a/app/email_queue/email_queue_edit.php b/app/email_queue/email_queue_edit.php
index e069582d59..c2af76f72d 100644
--- a/app/email_queue/email_queue_edit.php
+++ b/app/email_queue/email_queue_edit.php
@@ -165,7 +165,7 @@
$email_status = $row["email_status"];
$email_retry_count = $row["email_retry_count"];
//$email_action_before = $row["email_action_before"];
- $email_debug = $row["email_debug"];
+ $email_response = $row["email_response"];
$email_action_after = $row["email_action_after"];
}
unset($sql, $parameters, $row);
@@ -313,18 +313,16 @@
echo "\n";
echo "\n";
- if (isset($_REQUEST['debug'])) {
- echo "