Add hook to notify plugins about message sending errors

pull/156/head
Thomas Bruederli 11 years ago
parent 3b8a7918fc
commit aef6ed4702

@ -1537,6 +1537,10 @@ class rcube
!empty($response) ? join('; ', $response) : ''));
}
}
else {
// allow plugins to catch sending errors with the same parameters as in 'message_before_send'
$this->plugins->exec_hook('message_send_error', $plugin + array('error' => $error));
}
if (is_resource($msg_body)) {
fclose($msg_body);

Loading…
Cancel
Save