Zymba Documentation
Mail.Message
Text
object @Mail.Message(@Base) {
clearHeaders(): $this {}
countHeaders(): int {}
create(): string {}
getDisposition(): string {}
getFilename(): string {}
getHeader(string $name): string {}
getTransferEncoding(): string {}
getType(): string {}
isAttachment(): bool {}
listHeaderNames(): object {}
listHeaders(): object {}
removeHeader(string $name): $this {}
removeHeaders(object $names): $this {}
setHeader(string $name, mixed $value): $this {}
setHeaders(object $headers, string $prefix): $this {}
setDisposition(string $disposition, string $filename): $this {}
setTransferEncoding(string $encoding): $this {}
setType(string $type): $this {}
}
Abstract mail message prototype.
Prototype
Methods
Gets the content disposition of this message.
CODE
$this.getDisposition(): string
Returns
| Type | Value |
|---|---|
string |
Gets the content transfer encoding of this message.
CODE
$this.getTransferEncoding(): string
Returns
| Type | Value |
|---|---|
string |
Sets multiple mail headers by treating slot names as header names, expanded by a specific prefix, and slot values as non-referential header values.
CODE
$this.setHeaders(object $headers, string $prefix): this
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| headers | object | [name: value, ...] | [] |
| prefix | string | "" |
Returns
| Type | Value |
|---|---|
$this |