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
+4 -1
View File
@@ -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 "<br><br>\n";