Mail::removeHeader
Remove custom header
Description
public self Mail::removeHeader( [ $key = null ] )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$key | string | Header key / if omit $key, remove all email header |
Example
Controller
$mail = $this->getClass('Tool/Mail');
$mail->pushHeader('foo', 'bar');
$mail->removeHeader('foo');
// Remove all email header
$mail->removeHeader();