private static function getBoundary($content_type)
{
preg_match('/boundary="?(.+?)"?$/', $content_type, $matches);
if (!isset($matches[1])) {
throw new Exceptions\Exception('You need to set a boundary if submitting attachments.');
}
return '--' . $matches[1];
}