From 4c80ff1058860e5461c2506057e5491e032ebeb2 Mon Sep 17 00:00:00 2001 From: yoye Date: Thu, 5 Sep 2013 10:39:20 +0200 Subject: [PATCH] Fix variables in BatchMessage:sendMessage() --- src/Mailgun/Messages/BatchMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mailgun/Messages/BatchMessage.php b/src/Mailgun/Messages/BatchMessage.php index 2dceab6..04a7715 100644 --- a/src/Mailgun/Messages/BatchMessage.php +++ b/src/Mailgun/Messages/BatchMessage.php @@ -58,7 +58,7 @@ class BatchMessage extends MessageBuilder{ throw new MissingRequiredMIMEParameters(EXCEPTION_MISSING_REQUIRED_MIME_PARAMETERS); } else{ - $this->message["recipient-variables"] = json_encode($this->batchRecipientAttributes); + $message["recipient-variables"] = json_encode($this->batchRecipientAttributes); $response = $this->restClient->post($this->endpointUrl, $message, $files); $this->batchRecipientAttributes = array(); $this->toRecipientCount = 0;