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

__construct() public method

Creates an attachment.
public __construct ( string $content, string $name, string $mimeType = 'application/octet-stream', string $encoding = '' )
$content string FileAttachment contents
$name string Attachment name
$mimeType string Attachment mime-type
$encoding string Source encoding
    public function __construct(string $content, string $name, string $mimeType = 'application/octet-stream', string $encoding = '')
    {
        $this->setContent($content);
        $this->setName($name);
        $this->setMimeType($mimeType);
        $this->setEncoding($encoding);
    }