Skip to main content

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

Base

Methods

CODE
$this.clearHeaders(): this
Returns
TypeValue
$this
CODE
$this.countHeaders(): int
Returns
TypeValue
int
CODE
$this.create(): string
Returns
TypeValue
string

Gets the content disposition of this message.

CODE
$this.getDisposition(): string
Returns
TypeValue
string

Gets the filename of this message.

CODE
$this.getFilename(): string
Returns
TypeValue
string
CODE
$this.getHeader(string $name): string
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
string
object[value, ...]
null

Gets the content transfer encoding of this message.

CODE
$this.getTransferEncoding(): string
Returns
TypeValue
string

Gets the content type of this message.

CODE
$this.getType(): string
Returns
TypeValue
string
CODE
$this.isAttachment(): bool
Returns
TypeValue
bool
CODE
$this.listHeaderNames(): object
Returns
TypeValue
object[name, ...]
CODE
$this.listHeaders(): object
Returns
TypeValue
object[name: value, ...]
CODE
$this.removeHeader(string $name): this
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
$this
CODE
$this.removeHeaders(object $names): this
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
$this

Sets a mail header.

CODE
$this.setHeader(string $name, mixed $value): this
Parameters
NameTypeValueDefault
namestring""
valuemixednull
Returns
TypeValue
$this

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
NameTypeValueDefault
headersobject[name: value, ...][]
prefixstring""
Returns
TypeValue
$this

Sets the content disposition of this message.

CODE
$this.setDisposition(string $disposition, string $filename): this
Parameters
NameTypeValueDefault
dispositionstring""
filenamestring""
Returns
TypeValue
$this

Sets the content transfer encoding of this message.

CODE
$this.setTransferEncoding(string $encoding): this
Parameters
NameTypeValueDefault
encodingstring""
Returns
TypeValue
$this

Sets the content type of this message.

CODE
$this.setType(string $type): this
Parameters
NameTypeValueDefault
typestring""
Returns
TypeValue
$this