class MailAttachment (View source)

The MailAttachment class.

Traits

The OptionAccessTrait class.

Methods

mixed
getOption(string $name, mixed $default = null)

Method to get property Options

setOption(string $name, mixed $value)

Method to set property options

int
getOptions()

Method to get property Options

setOptions(int $options)

Method to set property options

__construct(string $filePath = null, string $contentType = null)

MailAttachment constructor.

loadFile(string $file)

loadFile

string
getContentType()

Method to get property ContentType

setContentType(string $contentType)

Method to set property contentType

string
getFilename()

Method to get property Filename

setFilename(string $filename)

Method to set property filename

string
getBody()

Method to get property Body

setBody(string $body)

Method to set property body

Details

mixed getOption(string $name, mixed $default = null)

Method to get property Options

Parameters

string $name
mixed $default

Return Value

mixed

OptionAccessTrait setOption(string $name, mixed $value)

Method to set property options

Parameters

string $name
mixed $value

Return Value

OptionAccessTrait Return self to support chaining.

int getOptions()

Method to get property Options

Return Value

int

OptionAccessTrait setOptions(int $options)

Method to set property options

Parameters

int $options

Return Value

OptionAccessTrait Return self to support chaining.

at line line 49
__construct(string $filePath = null, string $contentType = null)

MailAttachment constructor.

Parameters

string $filePath
string $contentType

at line line 66
MailAttachment loadFile(string $file)

loadFile

Parameters

string $file

Return Value

MailAttachment

at line line 86
string getContentType()

Method to get property ContentType

Return Value

string

at line line 98
MailAttachment setContentType(string $contentType)

Method to set property contentType

Parameters

string $contentType

Return Value

MailAttachment Return self to support chaining.

at line line 110
string getFilename()

Method to get property Filename

Return Value

string

at line line 122
MailAttachment setFilename(string $filename)

Method to set property filename

Parameters

string $filename

Return Value

MailAttachment Return self to support chaining.

at line line 134
string getBody()

Method to get property Body

Return Value

string

at line line 153
MailAttachment setBody(string $body)

Method to set property body

Parameters

string $body

Return Value

MailAttachment Return self to support chaining.