Solar_Mail_Message_Part::setHeader()

public void Solar_Mail_Message_Part::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