From 5ddcc697e9594cbbdbcfaf4804a8aae8626d1a2d Mon Sep 17 00:00:00 2001 From: Stephen Bussey Date: Mon, 14 Apr 2014 00:35:21 -0400 Subject: [PATCH] Update SendGridService.php SendGrid should not attach a filetype --- src/SlmMail/Service/SendGridService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlmMail/Service/SendGridService.php b/src/SlmMail/Service/SendGridService.php index 00911c7..d6063cf 100644 --- a/src/SlmMail/Service/SendGridService.php +++ b/src/SlmMail/Service/SendGridService.php @@ -135,7 +135,7 @@ public function send(Message $message) $post = $client->getRequest()->getPost(); $attachments = $this->extractAttachments($message); foreach ($attachments as $attachment) { - $post->set('files[' . $attachment->filename . ']', $attachment->getRawContent() . ';type=' . $attachment->type); + $post->set('files[' . $attachment->filename . ']', $attachment->getRawContent()); } $response = $client->setMethod(HttpRequest::METHOD_POST)