Releases: nette/mail
Released version 4.1.1
🐛 Bug Fixes
- Message::setHtmlBody() – survives large inline
data:URIs. A >500 kB base64 payload used to exhaust PCRE's backtrack limit and abort the whole send; the regex is now backtracking-free (#79) - Message::setHtmlBody() – embeds images whose quoted
src="…"orurl('…')contains spaces, like"holiday photos/beach.jpg"(#97) - Message::setHtmlBody() – embeds images whose quoted path contains parentheses, so the classic
screenshot (1).pngnaming no longer silently breaks (#89) - SendmailMailer – signs the full message so DKIM now covers
SubjectandToheaders, closing a deliverability gap at Gmail, Outlook, and other strict providers (#99) - MimePart – quotes address phrases containing special characters before MIME-encoding, producing spec-compliant headers even when names include commas, angle brackets, or quotes (#102)
- CssInliner – gracefully skips selectors the DOM engine can't evaluate; pseudo-classes and pseudo-elements like
::marker,:hover,:checkedno longer break inlining - CssInliner – tokenizer regex fixed for very long strings and invalid
url()quote combinations that previously tripped the parser
Released version 4.1.0
This release introduces CssInliner – a brand-new component that brings CSS-to-inline-style conversion directly into Nette Mail. The minimum PHP version has been raised to 8.2, and static analysis is now a mandatory part of the build pipeline.
-
Minimum PHP version raised from 8.0 to 8.2 – time to upgrade if you haven't already
-
Improved PHPDoc types and descriptions for better IDE support and static analysis accuracy
-
CssInliner – converts
<style>rules into inlinestyleattributes, making your HTML emails render consistently across email clients. Features a single-regex tokenizer, full CSS nesting support,Dom\HTMLDocumentselector matching (PHP 8.4+), and automatic Outlook-compatible HTML attribute generation (bgcolor,width,align, etc.).<style>tags are preserved so@mediaqueries keep working.
Released version 4.0.4
- support for PHP 8.5
- optimized global function calls
- used attribute Deprecated
Released version 4.0.3
- SendmailMailer: the use of -f option in the mail command can be disabled (#98)
- support for PHP 8.4
Released version 4.0.2
- SmtpMailer: fixed problem with empty response with slow SMTP server
Released version 3.1.11
- support for PHP 8.3
- SmtpMailer: fixed problem with empty response with slow SMTP server
Released version 4.0.1
Released version 4.0.0
- requires PHP 8.0
- SmtpMailer & DkimSigner constructor: $options changed to parameters (BC break)
- SendmailMailer: uses CRLF for message
- SendmailMailer: 'From' is passed as cmd argument [Closes #78]
- constants are PascalCase
- deprecated magic properties (BC break)
Released version 3.1.10
- MailExtension: renamed option 'secure' -> 'encryption'
- composer: allows nette/utils 4.0
Released version v3.1.9
- support for PHP 8.2
- private constants are PascalCase
- cs