diff --git a/include/class.ticket.php b/include/class.ticket.php
index 08e2e29d0ea6a3f26d12e6743882572df663f0d0..673ddf309b66e8bbee6f5f9cf4901860ceb7e840 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -2166,6 +2166,11 @@ class Ticket {
         if($autorespond && $dept && !$dept->autoRespONNewTicket())
             $autorespond=false;
 
+        //Don't send alerts to staff when the message is an auto reply
+        //  this is necessary to avoid possible loop (especially on new ticket)
+        if ($alertstaff && $message->isAutoReply())
+            $alertstaff = false;
+
         /***** See if we need to send some alerts ****/
         $ticket->onNewTicket($message, $autorespond, $alertstaff);