|
Previous Page |
Solar_Mail_Message_Part |
Next Page |
setHeader()
public
void
setHeader (
string $label,
string $value
)
Sets (or resets) one header in the part.
Parameters
- (string)
$label: The header label. - (string)
$value: The header value.
Returns
- (void)
Description
Sets (or resets) one header in the part.
Canonicalizes the label, and strips CR/LF from the value, to help prevent header injections.
You can only set one label to one value; you can't have multiple repetitions of the same label to get multiple values.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _exception()
- apiVersion()
- dump()
- fetch()
- fetchContent()
- fetchHeaders()
- getBoundary()
- getCharset()
- getContent()
- getCrlf()
- getDisposition()
- getEncoding()
- getFilename()
- getType()
- locale()
- setBoundary()
- setCharset()
- setContent()
- setCrlf()
- setDisposition()
- setEncoding()
- setFilename()
- setHeader()
- setType()