![rossb](https://xoops.org/uploads/avatars/blank.gif)
/class/mail/phpmailer/class.phpmailer.php, alter function (comment stuff):
public function postSend()
{
try {
// Choose the mailer and send through it
switch ($this->Mailer) {
case 'sendmail':
case 'qmail':
return $this->sendmailSend($this->MIMEHeader, $this->MIMEBody);
case 'smtp':
return $this->smtpSend($this->MIMEHeader, $this->MIMEBody);
case 'mail':
return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
default:
//$sendMethod = $this->Mailer.'Send';
//if (method_exists($this, $sendMethod)) {
// return $this->$sendMethod($this->MIMEHeader, $this->MIMEBody);
//}
//file_put_contents(OLEDRION_GATEWAY_LOG_PATH, "!" , FILE_APPEND | LOCK_EX);
return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
}
} catch (phpmailerException $exc) {
$this->setError($exc->getMessage());
$this->edebug($exc->getMessage());
if ($this->exceptions) {
throw $exc;
}
}
return false;
}
since
$this->$sendMethod($this->MIMEHeader, $this->MIMEBody);
does not return, causes exception with no error text.
...B