mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
more info in Error Log for failed sending
This commit is contained in:
parent
e8e7cf29a9
commit
b0501eefe6
@ -978,14 +978,14 @@
|
||||
// set a higher timeout for big messages
|
||||
@set_time_limit(120);
|
||||
//$mail->SMTPDebug = 10;
|
||||
#error_log("Folder:".count(array($this->sessionData['folder']))."To:".count((array)$this->sessionData['to'])."CC:". count((array)$this->sessionData['cc']) ."bcc:".count((array)$this->sessionData['bcc']));
|
||||
//error_log("Folder:".count(array($this->sessionData['folder']))."To:".count((array)$this->sessionData['to'])."CC:". count((array)$this->sessionData['cc']) ."bcc:".count((array)$this->sessionData['bcc']));
|
||||
if(count((array)$this->sessionData['to']) > 0 || count((array)$this->sessionData['cc']) > 0 || count((array)$this->sessionData['bcc']) > 0) {
|
||||
try {
|
||||
$mail->Send();
|
||||
}
|
||||
catch(phpmailerException $e) {
|
||||
$this->errorInfo = $e->getMessage();
|
||||
#error_log($this->errorInfo);
|
||||
error_log(__METHOD__.__LINE__.array2string($this->errorInfo));
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user