mini\Mail\NativeMailTransport class

Documentation

Mail transport using PHP's native mail() function

Note: mail() has a peculiar API where headers and body are separate, and the To/Subject headers must NOT be in the headers parameter. This transport handles that conversion.

The -f flag is used to set the envelope sender, which requires safe_mode to be off or the sender to be in safe_mode_allowed_env_vars.

Inheritance

Implements: mini\Mail\MailTransportInterface

Properties (1)

private ?string $additionalParams

Methods (3)

Documentation missing

Documentation missing

Build headers string for mail(), excluding To and Subject

Source

src/Mail/NativeMailTransport.php:15-72