public static function fromLocalPath($path, $name = "")
    {
        if ($name == "") {
            $name = basename($path);
        }

        $part = new MimePartBinaryFile();
        $part->setTransformedBody(file_get_contents($path));
        $part->addHeader("Content-Disposition", "attachment; filename=\"" . $name . "\"");

        return $part;
    }