0013358: triggerAsyncEvents: After SMTP error alarm sent_status is on 'success'
[tine20] / tine20 / Calendar / Controller / EventNotifications.php
index f82447e..43f408e 100644 (file)
      * @param array                      $_updates
      * @return void
      *
+     * @throws Exception
+     *
      * TODO this needs major refactoring
      */
     public function sendNotificationToAttender(Calendar_Model_Attender $_attender, $_event, $_updater, $_action, $_notificationLevel, $_updates = NULL)
             }
         } catch (Exception $e) {
             Tinebase_Exception::log($e);
+            if ($_action === 'alarm') {
+                // throw exception in case of alarm as the exception is catched in \Tinebase_Alarm::sendPendingAlarms
+                // and alarm sending is marked as failure
+                throw $e;
+            }
             return;
         }
     }