Methods

All methods in the Solar_Mail_Message class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

addBcc()

Adds a "Bcc:" address recipient.

addCc()

Adds a "Cc:" address recipient.

addHeader()

Adds a custom header to the message.

addTo()

Adds a "To:" address recipient.

attachFile()

Attaches a file to the message.

attachPart()

Attaches a Solar_Mail_Message_Part to the message.

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

fetchContent()

Fetches all the content parts of this message as a string.

fetchHeaders()

Fetches all the headers of this message as a sequential array.

getCharset()

Returns the character set for this message.

getCrlf()

Returns the CRLF sequence for this message.

getEncoding()

Returns the encoding for this message.

getFrom()

Returns the "From:" address for this message.

getHtml()

Returns the Solar_Mail_Message_Part for the HTML portion.

getRcpt()

Returns an array of all recipient addresses.

getReplyTo()

Returns the "Reply-To:" address for this message.

getReturnPath()

Returns the current Return-Path address for the email.

getSubject()

Returns the message subject.

getText()

Returns the Solar_Mail_Message_Part for the plain-text portion.

locale()

Looks up class-specific locale strings based on a key.

resetRcpt()

Resets all recipients in To, Cc and Bcc.

send()

If a transport dependency has been injected, use it to send this email.

setBcc()

Sets the "Bcc:" address recipient, removing previous "Bcc:" recipients.

setCc()

Sets the "Cc:" address recipient, removing previous "Cc:" recipients.

setCharset()

Sets the character set for this message.

setCrlf()

Sets the CRLF sequence for this message.

setEncoding()

Sets the encoding for this message.

setFrom()

Sets the "From:" (sender) on this message.

setHtml()

Sets the part for the HTML portion of this message.

setReplyTo()

Sets the "Reply-To:" on this message.

setReturnPath()

Sets the Return-Path header for an email.

setSubject()

Sets the subject of the message.

setText()

Sets the part for the plain-text portion of this message.

setTo()

Sets the "To:" address recipient, removing previous "To:" recipients.

setTransport()

Sets the Solar_Mail_Transport dependency.

Protected

_boundaryEnd()

Returns a boundary-line ending.

_boundarySep()

Returns a boundary-line separator.

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

Private

None.



Local