Headers
- Full name:
\Qubus\Mail\Headers
Methods
withSender
The envelope sender of the message.
This will usually be turned into a Return-Path header by the receiver, and is the address that bounces will be sent to.
Parameters:
Parameter | Type | Description |
---|---|---|
$sender | string |
withSubject
The Subject of the message.
Parameters:
Parameter | Type | Description |
---|---|---|
$subject | string |
withPriority
Email priority.
Options: null (default), 1 = High, 3 = Normal, 5 = low. When null, the header is not set at all.
Parameters:
Parameter | Type | Description |
---|---|---|
$priority | int|null |
withCharset
The character set of the message.
Parameters:
Parameter | Type | Description |
---|---|---|
$charset | string | The character set of the message. |
withCustomHeader
Add a custom header.
$name value can be overloaded to contain both header name and value (name:value).
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | Custom header name. |
$value | string|null | Header value. |
Throws:
withContentType
The MIME Content-type of the message.
Parameters:
Parameter | Type | Description |
---|---|---|
$contentType | string |
withXMailer
What to put in the X-Mailer header.
Options: An empty string for PHPMailer default, whitespace/null for none, or a string to use.
Parameters:
Parameter | Type | Description |
---|---|---|
$xmailer | string|null |
Automatically generated on 2025-10-13