Headers
Table of Contents
- $headers : array<string|int, string|array>
- __construct() : mixed
- addBcc() : self
- Adds Bcc to headders
- getHeader() : mixed
- Get single header
- getHeaders() : array<string|int, array|string>
- Return string header for email
- setFrom() : void
- Adds From to headders
- setHeader() : self
- Set single header
Properties
$headers
private
array<string|int, string|array>
$headers
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addBcc()
Adds Bcc to headders
public
addBcc(string $bcc) : self
Parameters
- $bcc : string
Return values
self —getHeader()
Get single header
public
getHeader(string $key) : mixed
Parameters
- $key : string
Return values
mixed —getHeaders()
Return string header for email
public
getHeaders() : array<string|int, array|string>
Return values
array<string|int, array|string> —setFrom()
Adds From to headders
public
setFrom(string $fromName, string $from) : void
Parameters
- $fromName : string
- $from : string
Return values
void —setHeader()
Set single header
private
setHeader(string $key, mixed $content) : self
Parameters
- $key : string
- $content : mixed