Jyxo\Mail\Email\Attachment\InlineFileAttachment::__construct PHP Method

__construct() public method

Creates an attachment.
public __construct ( string $path, string $name, string $cid, string $mimeType = 'application/octet-stream' )
$path string Filename
$name string Attachment name
$cid string Id
$mimeType string Attachment mime-type
    public function __construct(string $path, string $name, string $cid, string $mimeType = 'application/octet-stream')
    {
        $this->setContent(file_get_contents($path));
        $this->setName($name);
        $this->setCid($cid);
        $this->setMimeType($mimeType);
    }
InlineFileAttachment