public static function buildSwift($attachmentPath, $name)
    {
        $file = \Swift_Attachment::fromPath($attachmentPath);
        if (is_string($name)) {
            $file->setFilename($name);
        }

        return $file;
    }