mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-16 21:13:12 +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($this->toRecipientCount == 1000){
|
||||||
//If autoSend is off, do things here.
|
//If autoSend is off, do things here.
|
||||||
if($this->autoSend == false){
|
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{
|
else{
|
||||||
$this->sendMessage();
|
$this->sendMessage();
|
||||||
|
@ -46,7 +46,7 @@ class BatchMessageTest extends \Mailgun\Tests\MailgunTestCase{
|
|||||||
$message->setFromAddress("samples@mailgun.org", array("first" => "Test", "last" => "User"));
|
$message->setFromAddress("samples@mailgun.org", array("first" => "Test", "last" => "User"));
|
||||||
$message->setSubject("This is the subject of the message!");
|
$message->setSubject("This is the subject of the message!");
|
||||||
$message->setTextBody("This is the text body of the message!");
|
$message->setTextBody("This is the text body of the message!");
|
||||||
$message->sendMessage();
|
$message->finalize();
|
||||||
$messageObj= $message->getMessage();
|
$messageObj= $message->getMessage();
|
||||||
$this->assertTrue(true, empty($messageObj));
|
$this->assertTrue(true, empty($messageObj));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user