Sendmail
extends AbstractTransport
in package
Sendmail transport class
Tags
Table of Contents
Properties
- $params : string|null
- Sendmail params
Methods
- __construct() : mixed
- Constructor
- getParams() : string|null
- Get the params
- send() : bool
- Send the message
- setParams() : Sendmail
- Set the params
Properties
$params
Sendmail params
protected
string|null
$params
= null
Methods
__construct()
Constructor
public
__construct([string|null $params = null ]) : mixed
Instantiate the Sendmail transport object
Parameters
- $params : string|null = null
getParams()
Get the params
public
getParams() : string|null
Return values
string|nullsend()
Send the message
public
send(Message $message) : bool
Body must be computed (and, when the message has parts, the boundary triggered) BEFORE the headers are stringified: getBodyContent() -> Part::renderParts() is what lazily synthesizes the Content-Type: multipart/...; boundary=... header, and Message::getBoundary() is what emits MIME-Version as a side effect. Computing $headers first (the prior ordering) would stringify the header set before those side effects fire, silently dropping Content-Type/MIME-Version from every multipart message sent through this transport. See Message::render() for the same pattern.
Parameters
- $message : Message
Return values
boolsetParams()
Set the params
public
setParams(string $params) : Sendmail
Parameters
- $params : string