mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -561,8 +561,17 @@ if (!class_exists('email')) {
|
||||
}
|
||||
}
|
||||
|
||||
//save output to a buffer
|
||||
ob_start();
|
||||
|
||||
//send the email
|
||||
if (!$mail->Send()) {
|
||||
$mail_status = $mail->Send();
|
||||
|
||||
//get the output buffer
|
||||
$this->response = ob_get_clean();
|
||||
|
||||
//send the email
|
||||
if (!$mail_status) {
|
||||
if (isset($mail->ErrorInfo) && strlen($mail->ErrorInfo) > 0) {
|
||||
$this->error = $mail->ErrorInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user