Save the email response (#6558)

* Save the email response

* use the response variable from the email class

* Rename email_debug to email_response

* Update app_languages.php

* Show the email response

* Save the email response
This commit is contained in:
FusionPBX
2023-02-17 12:47:11 -07:00
committed by GitHub
parent 7dbfd22acb
commit 97dbe7b31a
6 changed files with 62 additions and 29 deletions

View File

@@ -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 "</td>\n";
echo "</tr>\n";
if (isset($_REQUEST['debug'])) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-email_debug']."\n";
echo "</td>\n";
echo "<td class='vtable' style='position: relative;' align='left'>\n";
echo " <textarea class='formfld' style='width: 450px; height: 100px;' name='email_debug'>".$email_debug."</textarea>\n";
echo "<br />\n";
echo $text['description-email_debug']."\n";
echo "</td>\n";
echo "</tr>\n";
}
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-email_response']."\n";
echo "</td>\n";
echo "<td class='vtable' style='position: relative;' align='left'>\n";
echo " <textarea class='formfld' style='width: 450px; height: 100px;' name='email_response'>".$email_response."</textarea>\n";
echo "<br />\n";
echo $text['description-email_response']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>";
echo "<br /><br />";