Pop\Mail\Attachment::build PHP Метод

build() публичный Метод

Build attachment
public build ( string $boundary, string $eol = " " ) : string
$boundary string
$eol string
Результат string
    public function build($boundary, $eol = "\r\n")
    {
        $attachment = $eol . '--' . $boundary . $eol . 'Content-Type: file; name="' . $this->basename . '"' . $eol . 'Content-Transfer-Encoding: base64' . $eol . 'Content-Description: ' . $this->basename . $eol . 'Content-Disposition: attachment; filename="' . $this->basename . '"' . $eol . $eol . $this->encoded . $eol . $eol;
        return $attachment;
    }