diff --git a/include/class.ticket.php b/include/class.ticket.php
index edb5e49fc63b568cb1e731dd9091fa8ede0f04e0..e4f5a8b7721b2c451627817ff2ec40b1f6d989cb 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1109,7 +1109,7 @@ class Ticket {
             // Skip the person who sent in the message
             $skip[$entry->getUserId()] = 1;
             // Skip all the other recipients of the message
-            foreach ($entry->getEmailAllRecipients() as $R) {
+            foreach ($entry->getAllEmailRecipients() as $R) {
                 foreach ($recipients as $R2) {
                     if ($R2->getEmail() == ($R->mailbox.'@'.$R->hostname)) {
                         $skip[$R2->getUserId()] = true;
diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php
index 5e3904e62d1ba00ccf14b1537d851bb8a81f6d6c..399943b6be34b92b155d204ce6cfb809b68f6777 100644
--- a/setup/test/tests/stubs.php
+++ b/setup/test/tests/stubs.php
@@ -122,4 +122,8 @@ class IntlBreakIterator {
 class SqlFunction {
     static function NOW() {}
 }
+
+class Aws_Route53_Client {
+    function changeResourceRecordSets() {}
+}
 ?>