Constants

TEXT

TEXT

Constants for message body types

HTML

HTML

TEXT_HTML

TEXT_HTML

TEXT_FILE

TEXT_FILE

HTML_FILE

HTML_FILE

TEXT_HTML_FILE

TEXT_HTML_FILE

Properties

$message

$message : string

Message body

Type

string

$mimeBoundary

$mimeBoundary : string

MIME boundary

Type

string

$text

$text : string

Text part of the message body

Type

string

$html

$html : string

HTML part of the message body

Type

string

$charset

$charset : string

Character set

Type

string

$eol

$eol : string

EOL property

Type

string

Methods

__construct()

__construct(\Pop\Mail\Mail  $mail) : \Pop\Mail\Message

Constructor

Instantiate the message object.

Parameters

\Pop\Mail\Mail $mail

Returns

\Pop\Mail\Message

getBoundary()

getBoundary() : string

Get MIME boundary

Returns

string

getEol()

getEol() : string

Get EOL

Returns

string

getCharset()

getCharset() : string

Get character set

Returns

string

getText()

getText() : string

Get text part of the message.

Returns

string

getHtml()

getHtml() : string

Get HTML part of the message.

Returns

string

getMessage()

getMessage() : string

Get the message.

Returns

string

setBoundary()

setBoundary(string  $bnd = null) : \Pop\Mail\Message

Set MIME boundary

Parameters

string $bnd

Returns

\Pop\Mail\Message

setEol()

setEol(string  $eol = \Pop\Mail\Mail::CRLF) : \Pop\Mail\Mail

Set EOL

Parameters

string $eol

Returns

\Pop\Mail\Mail

setCharset()

setCharset(string  $chr) : \Pop\Mail\Message

Set character set

Parameters

string $chr

Returns

\Pop\Mail\Message

setText()

setText(string  $text) : \Pop\Mail\Message

Set text part of the message.

Parameters

string $text

Returns

\Pop\Mail\Message

setHtml()

setHtml(string  $html) : \Pop\Mail\Message

Set HTML part of the message.

Parameters

string $html

Returns

\Pop\Mail\Message

init()

init() : \Pop\Mail\Message

Initialize the email message.

Throws

\Pop\Mail\Exception

Returns

\Pop\Mail\Message

getMessageType()

getMessageType() : string

Get message type.

Returns

string