Skip to content

Commit

Permalink
Update SendGridService.php
Browse files Browse the repository at this point in the history
SendGrid should not attach a filetype
  • Loading branch information
sb8244 committed Apr 14, 2014
1 parent 467df5f commit 5ddcc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SlmMail/Service/SendGridService.php
Expand Up @@ -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)
Expand Down

0 comments on commit 5ddcc69

Please sign in to comment.