Zum Hauptinhalt springen

Zymba Documentation

Mail.SimpleMessage

object @Mail.SimpleMessage(@Mail.Message) {
construct() {}
getBody(): string {}
getBodyRaw(): string {}
getCharset(): string {}
isText(): bool {}
setBody(string $body, ?string $encoding): $this {}
setBodyRaw(string $body): $this {}
setCharset(string $charset): $this {}
setText(string $text, ?string $charset): $this {}
}

Simple mail message prototype.

Prototype

Mail.Message

Methods

$this.construct(): void
$this.getBody(): string
Returns
TypeValue
string
$this.getBodyRaw(): string
Returns
TypeValue
string

Gets the character set of this message.

$this.getCharset(): string
Returns
TypeValue
string
$this.isText(): bool
Returns
TypeValue
bool
$this.setBody(string $body, ?string $encoding): this
Parameters
NameTypeValueDefault
bodystring""
encoding?stringcurrent encoding
Returns
TypeValue
$this
$this.setBodyRaw(string $body): this
Parameters
NameTypeValueDefault
bodystring""
Returns
TypeValue
$this
$this.setCharset(string $charset): this
Parameters
NameTypeValueDefault
charsetstring""
Returns
TypeValue
$this
$this.setText(string $text, ?string $charset): this
Parameters
NameTypeValueDefault
textstring""
charset?stringcurrent charset or UTF-8 if empty
Returns
TypeValue
$this