mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 20:46:03 +03:00
Fixed inconsistency between Batch and Builder on Add Recipient
This commit is contained in:
parent
685a7351d5
commit
41c4d31ae5
@ -26,7 +26,7 @@ class BatchMessage extends MessageBuilder{
|
|||||||
$this->endpointUrl = $workingDomain . "/messages";
|
$this->endpointUrl = $workingDomain . "/messages";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addToRecipient($address, $variables){
|
public function addToRecipient($address, $variables = null){
|
||||||
if($this->toRecipientCount == RECIPIENT_COUNT_LIMIT){
|
if($this->toRecipientCount == RECIPIENT_COUNT_LIMIT){
|
||||||
if($this->autoSend == false){
|
if($this->autoSend == false){
|
||||||
throw new TooManyParameters(TOO_MANY_RECIPIENTS);
|
throw new TooManyParameters(TOO_MANY_RECIPIENTS);
|
||||||
|
Loading…
Reference in New Issue
Block a user