Constants

PRIORITY_HIGHEST

PRIORITY_HIGHEST = 1

PRIORITY_HIGH

PRIORITY_HIGH = 2

PRIORITY_NORMAL

PRIORITY_NORMAL = 3

PRIORITY_LOW

PRIORITY_LOW = 4

PRIORITY_LOWEST

PRIORITY_LOWEST = 5

Properties

$_date

$_date : string

Type

string

$_subject

$_subject : string

Type

string

$_to

$_to : string|array

Type

string|array

$_priority

$_priority : integer

Type

integer

$_charset

$_charset : string

Type

string

$_from

$_from : array

Type

array

$_replay_to

$_replay_to : array

Type

array

$_cc

$_cc : array

Type

array

$_bcc

$_bcc : array

Type

array

$_html_body

$_html_body : string

Type

string

$_text_body

$_text_body : string

Type

string

$_attachments

$_attachments : array

Type

array

$_embedded_files

$_embedded_files : array

Type

array

Methods

__construct()

__construct(array  $message = null) 

Parameters

array $message

setCharset()

setCharset(string  $charset) : static

Parameters

string $charset

Returns

static

getCharset()

getCharset() : string

Returns

string

setFrom()

setFrom(string|array  $from) : static

Parameters

string|array $from

Returns

static

getFrom()

getFrom() : array

Returns

array

setTo()

setTo(string|array  $to) : static

Parameters

string|array $to

Returns

static

getTo()

getTo() : array

Returns

array

setReplyTo()

setReplyTo(string|array  $replyTo) : static

Parameters

string|array $replyTo

Returns

static

getReplyTo()

getReplyTo() : array

Returns

array

setCc()

setCc(string|array  $cc) : static

Parameters

string|array $cc

Returns

static

getCc()

getCc() : array

Returns

array

setBcc()

setBcc(array|string  $bcc) : static

Parameters

array|string $bcc

Returns

static

getBcc()

getBcc() : array

Returns

array

setSubject()

setSubject(string  $subject) : static

Parameters

string $subject

Returns

static

getSubject()

getSubject() : string

Returns

string

setBody()

setBody(string  $html, string  $text = null) : static

Parameters

string $html
string $text

Returns

static

setHtmlBody()

setHtmlBody(string|array  $body) : static

Parameters

string|array $body

Returns

static

getHtmlBody()

getHtmlBody() : string

Returns

string

setTextBody()

setTextBody(string  $body) : static

Parameters

string $body

Returns

static

getTextBody()

getTextBody() : string

Returns

string

setPriority()

setPriority(integer  $priority) : static

Parameters

integer $priority

Returns

static

getPriority()

getPriority() : integer

Returns

integer

getRandomId()

getRandomId() : string

Returns

string

addAttachment()

addAttachment(string  $file, string  $name = null) : static

Parameters

string $file
string $name

Returns

static

getAttachments()

getAttachments() : array<mixed,array>

Returns

array<mixed,array>

addEmbeddedFile()

addEmbeddedFile(string  $file = null, string  $name = null) : string

Parameters

string $file
string $name

Returns

string

embed()

embed(string  $file, string  $name = null) : string

Parameters

string $file
string $name

Returns

string

getEmbeddedFiles()

getEmbeddedFiles() : array<mixed,array>

Returns

array<mixed,array>

send()

send(array  $failedRecipients = null) : integer

Parameters

array $failedRecipients

Returns

integer

toArray()

toArray() : array

Returns

array

jsonSerialize()

jsonSerialize()