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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user