Repository navigation
1.10.3: se7enxweb/expcomponents-mail, Exponential's fork of Zeta Components Mail
se7enxweb/expcomponents-mail 1.10.3 is Exponential's fork of Zeta Components Mail. Install: composer require se7enxweb/expcomponents-mail:~1.10.3
Changes
-
Fixed: SMTP rejects envelope addresses (MAIL FROM, RCPT TO) which could
inject SMTP commands: line breaks, NUL, angle brackets and a quoted local
part with spaces or control characters (pull request #1).BEHAVIOUR CHANGE: an address with a quoted local part that holds a space
(for example "john doe"@example.com) is refused by the SMTP transport with
an ezcMailTransportException, where it was sent before. Such addresses are
valid in RFC 5321 but almost never used; a caller that must send to one
needs to catch the exception. -
Fixed: SMTP normalises line endings to CRLF before dot-stuffing, so a lone
LF or CR can no longer smuggle a "." line that ends the DATA command early
(pull request #2). -
Fixed: SMTP always sends EHLO and falls back to HELO only when the server
rejects EHLO (pull request #3). -
Fixed: SMTP tries the next authentication method if the server rejects one
(pull request #4). -
Added: tests/local_smtp, one fake SMTP server (tests/local_smtp/fake_smtp_server.php)
and one test case base class shared by the new SMTP tests; run them with
vendor/bin/phpunit --test-suffix _test.php tests/local_smtp (they also run
in the full suite).
Verified
Test suite on PHP 7.4, 8.0 and 8.5 on the node (391 tests; the only failures are two unreadable-attachment tests that fail as root, as on 1.10.2); the 37 fake SMTP server tests pass on PHP 7.4 and 8.0 to 8.5; GitHub Actions green on the release commit.