mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 00:25:37 +03:00
Adjustments
This commit is contained in:
parent
104bb72008
commit
8498145b2f
@ -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();
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user