diff --git a/src/Mailgun/Messages/BatchMessage.php b/src/Mailgun/Messages/BatchMessage.php index 81b45ea..f6139c3 100644 --- a/src/Mailgun/Messages/BatchMessage.php +++ b/src/Mailgun/Messages/BatchMessage.php @@ -27,7 +27,7 @@ class BatchMessage extends MessageBuilder{ if($this->toRecipientCount == 1000){ //If autoSend is off, do things here. if($this->autoSend == false){ - throw new TooManyParameters("You've exceeded the maximum recipient count (1,000) on the to field."); + throw new TooManyParameters("You've exceeded the maximum recipient count (1,000) on the to field with autosend disabled."); } else{ $this->sendMessage(); diff --git a/tests/Mailgun/Tests/Message/BatchMessageTest.php b/tests/Mailgun/Tests/Message/BatchMessageTest.php index a96a485..5147890 100644 --- a/tests/Mailgun/Tests/Message/BatchMessageTest.php +++ b/tests/Mailgun/Tests/Message/BatchMessageTest.php @@ -46,7 +46,7 @@ class BatchMessageTest extends \Mailgun\Tests\MailgunTestCase{ $message->setFromAddress("samples@mailgun.org", array("first" => "Test", "last" => "User")); $message->setSubject("This is the subject of the message!"); $message->setTextBody("This is the text body of the message!"); - $message->sendMessage(); + $message->finalize(); $messageObj= $message->getMessage(); $this->assertTrue(true, empty($messageObj)); }