|
Previous Page |
Solar_Mail_Message |
Next Page |
addHeader()
public
Solar_Mail_Message
addHeader (
string $label,
string $value,
bool $replace default true
)
Adds a custom header to the message.
Parameters
- (string)
$label: The header label. - (string)
$value: The header value. - (bool)
$replace: If true, resets all headers of the same label so that this is the only value for that header.
Returns
- (Solar_Mail_Message) This object.
Description
Adds a custom header to the message.
Canonicalizes the label, and strips CR/LF from the value, to help prevent header injections.
If you need to wrap lines in the header value, don't worry; the header encoding routine will wrap them for you.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _boundaryEnd()
- _boundarySep()
- _exception()
- addBcc()
- addCc()
- addHeader()
- addTo()
- apiVersion()
- attachFile()
- attachPart()
- dump()
- fetchContent()
- fetchHeaders()
- getCharset()
- getCrlf()
- getFrom()
- getHtml()
- getRcpt()
- getReplyTo()
- getReturnPath()
- getSubject()
- getText()
- locale()
- send()
- setCharset()
- setCrlf()
- setFrom()
- setHtml()
- setReplyTo()
- setReturnPath()
- setSubject()
- setText()