CustomHeaders final class
Minn\Mail\CustomHeaders · public/minn/src/Minn/Mail/CustomHeaders.php · 28 lines
A mailer's custom headers changed in place (PHPMailer::replaceCustomHeader, probe db-mail-rewrite-doubts): the first header of the name takes the new value and the others of that name go; a name nothing has is not added. A name or value with a line break, or an empty name, changes nothing and refuses without an error when a header would have taken it.
Public
| static | replace(array $headers, mixed $name, mixed $value): array# | Whether the replacement held, and the headers after it.
@return array{0: bool, 1: array<int, array{0: string, 1: string}>} |
Nothing matches.