|
@@ -561,8 +561,17 @@ if (!class_exists('email')) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //save output to a buffer
|
|
|
|
+ ob_start();
|
|
|
|
+
|
|
|
|
+ //send the email
|
|
|
|
+ $mail_status = $mail->Send();
|
|
|
|
+
|
|
|
|
+ //get the output buffer
|
|
|
|
+ $this->response = ob_get_clean();
|
|
|
|
+
|
|
//send the email
|
|
//send the email
|
|
- if (!$mail->Send()) {
|
|
|
|
|
|
+ if (!$mail_status) {
|
|
if (isset($mail->ErrorInfo) && strlen($mail->ErrorInfo) > 0) {
|
|
if (isset($mail->ErrorInfo) && strlen($mail->ErrorInfo) > 0) {
|
|
$this->error = $mail->ErrorInfo;
|
|
$this->error = $mail->ErrorInfo;
|
|
}
|
|
}
|