mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
more debug information for notification failure
This commit is contained in:
parent
80c3da850d
commit
a6d7f0caf3
@ -101,10 +101,10 @@ class notifications_email implements notifications_iface {
|
||||
if(is_array($_attachments) && count($_attachments) > 0) {
|
||||
foreach($_attachments as $attachment) {
|
||||
$this->mail->AddStringAttachment($attachment->string, $attachment->filename, $attachment->encoding, $attachment->type);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!$error=$this->mail->Send()) {
|
||||
throw new Exception("Failed sending notification message via email.$error");
|
||||
throw new Exception("Failed sending notification message via email.$error".print_r($this->mail->ErrorInfo,true));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user