Attachment
Less than 1 minute
Attachment
- Full name:
\Hazaar\Mail\Attachment
- Parent class:
\Hazaar\Mail\Mime\Part
Methods
__construct
public __construct(\Hazaar\File $file, ?string $name = null, bool $base64_encode = true): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$file | \Hazaar\File | |
$name | ?string | |
$base64_encode | bool |
Inherited methods
__construct
public __construct(string $content = null, string $content_type = null, string[] $headers = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string | |
$content_type | string | |
$headers | string[] |
setHeaders
public setHeaders(string[] $headers): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$headers | string[] |
setHeader
public setHeader(string $header, string $content): void
Parameters:
Parameter | Type | Description |
---|---|---|
$header | string | |
$content | string |
getHeader
public getHeader(string $header): string
Parameters:
Parameter | Type | Description |
---|---|---|
$header | string |
setContentType
public setContentType(string $type): void
Parameters:
Parameter | Type | Description |
---|---|---|
$type | string |
getContentType
public getContentType(): string
setDescription
public setDescription(string $text): void
Parameters:
Parameter | Type | Description |
---|---|---|
$text | string |
setContent
public setContent(string $content): void
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string |
getContent
public getContent(): string
detect_break
public detect_break(string $content, string $default = "
"): string
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string | |
$default | string |
encode
public encode(int $width_limit = 76): string
Parameters:
Parameter | Type | Description |
---|---|---|
$width_limit | int |
decode
public static decode(string $data): \Hazaar\Mail\Mime\Part
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | string |
jsonSerialize
public jsonSerialize(): mixed
Automatically generated on 2024-11-14