Message
Less than 1 minute
Message
- Full name:
\Hazaar\Mail\Mime\Message
- This class implements:
\JsonSerializable
Properties
crlf
protected string $crlf
parts
private \Hazaar\Mail\Mime\Part[] $parts
headers
private string[] $headers
msgid
private string $msgid
boundary
private string $boundary
Methods
__construct
public __construct((mixed|\Hazaar\Mail\Mime\Part)[] $parts = [], string[] $headers = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$parts | (mixed|\Hazaar\Mail\Mime\Part)[] | |
$headers | string[] |
__toString
public __toString(): mixed
addPart
public addPart(\Hazaar\Mail\Mime\Part $part): void
Parameters:
Parameter | Type | Description |
---|---|---|
$part | \Hazaar\Mail\Mime\Part |
addHeaders
public addHeaders(string[]|string $headers): void
Parameters:
Parameter | Type | Description |
---|---|---|
$headers | string[]|string |
getHeaders
public getHeaders(): string[]
getHeader
public getHeader(string $name): string
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
getParts
public getParts(): \Hazaar\Mail\Mime\Part[]
findPart
public findPart(string[]|string $content_type): bool|\Hazaar\Mail\Mime\Part
Parameters:
Parameter | Type | Description |
---|---|---|
$content_type | string[]|string |
encode
public encode(): string
decode
public static decode(string $data): \Hazaar\Mail\Mime\Message
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | string |
parseMessageHeaders
public static parseMessageHeaders(string $content): string[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string |
jsonSerialize
public jsonSerialize(): mixed
Automatically generated on 2024-11-14