\Pop\MailAttachment

Mail attachment class

Summary

Methods
Properties
Constants
__construct()
build()
No public properties found
No constants found
No protected methods found
$basename
$encoded
N/A
No private methods found
No private properties found
N/A

Properties

$basename

$basename : string

File attachment basename

Type

string

$encoded

$encoded : string

File attachment encoded content

Type

string

Methods

__construct()

__construct(string  $file) : \Pop\Mail\Attachment

Constructor

Instantiate the mail attachment object

Parameters

string $file

Throws

\Pop\Mail\Exception

Returns

\Pop\Mail\Attachment

build()

build(string  $boundary, string  $eol = "\r\n") : string

Build attachment

Parameters

string $boundary
string $eol

Returns

string