Documentation

Sendmail extends AbstractTransport
in package

Sendmail transport class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
5.0.0

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|null

send()

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
bool

setParams()

Set the params

public setParams(string $params) : Sendmail
Parameters
$params : string
Return values
Sendmail

        
On this page

Search results