diff --git a/src/Mailgun/Messages/BatchMessage.php b/src/Mailgun/Messages/BatchMessage.php index e41c17c..332a0df 100644 --- a/src/Mailgun/Messages/BatchMessage.php +++ b/src/Mailgun/Messages/BatchMessage.php @@ -26,7 +26,7 @@ class BatchMessage extends MessageBuilder{ $this->endpointUrl = $workingDomain . "/messages"; } - public function addToRecipient($address, $variables){ + public function addToRecipient($address, $variables = null){ if($this->toRecipientCount == RECIPIENT_COUNT_LIMIT){ if($this->autoSend == false){ throw new TooManyParameters(TOO_MANY_RECIPIENTS);