Repository navigation
Releases
Released version 4.2.3
fileconfiguration key – point it to a directory and every email is saved there as an.emlfile instead of being sent, with DKIM signing,redirectand the Tracy panel working just as with a real transportaccessTokenconfiguration key – XOAUTH2 straight from the config; pass a callable such as@App\GoogleOAuth::getAccessToken(...)and an expiring token is fetched fresh for every connection- CssInliner keeps your fallbacks –
display: -webkit-box; display: flexsurvives inlining, within one rule and across rules, so an older email client still finds a value it understands - Message-ID now uses the domain of the sender (
SenderorFrom) instead of the web server's host or the machine name - SmtpMailer now throws
InvalidArgumentExceptionfor an unknownencryption(BC break) – a value such as'TLS','starttls'or an empty string used to mean an unencrypted connection; use'ssl','tls'ornull. This also catches a dynamic%env%value the configuration schema cannot check - A persistent SMTP connection silently dropped by a firewall or NAT is now reopened within 5 seconds instead of after the full timeout
- Two SMTP edge cases behave sensibly now:
timeout: 0leaves the limits to PHP'sdefault_socket_timeout, and a rejected EHLO is reported as such, staying retryable in FallbackMailer when the rejection is temporary
Released version 4.2.2
- Support for PHP 8.6
- The
[[...]]placeholder in HTML bodies now embeds only an image inside the base path given toembedImages(); any other[[...]]in the text, such as[[spoiler]]or a path leading outside the base directory, stays as plain text (#108)
Released version 4.2.1
🐛 Bug Fixes
- Display names are no longer quoted when they don't need to be (#107). Since 4.2.0 any name outside plain ASCII – so every name with diacritics – got wrapped in a
quoted-stringbefore MIME encoding, which buried the quotes inside the base64 payload and decoded them as part of the name:Objednávky domena.czarrived as"Objednávky domena.cz". Quoting is now reserved for characters that could genuinely restructure an address list (,;:<>@"\), soKdo uteče, obědvákeeps its quotes and the DKIM fix from #102 stands, while ordinary accented names go out clean.
Released version 4.1.2
- Interceptor – a new mailer wrapper that redirects all outgoing
To/Cc/Bcc(plus read-receipt headers) to one fixed address, preserves the originals inX-Original-*headers, and optionally adds a subject prefix. No more sending test mail to real customers by accident. Wire it via DI withmail.redirect: dev@example.comand it slots in automatically. - MailTracy Bar panel – a new
Bridges/MailTracy/MailPanelsubscribes toInterceptor::$onSentand lists each sent message (From / To+Cc+Bcc / Subject / Status) right in the Tracy Bar. Auto-registers in debug mode whenever the Interceptor is active; opt in or out explicitly withmail: debugger: true|false. HtmlComposer– a standalone HTML pre-processing pipeline you can drive directly: opt in toinlineCss()(accumulates stylesheets across calls),embedImages($basePath), and let it handle<title>to subject extraction and plain-text alternative generation.Message::setHtmlBody()keeps working as a BC-friendly facade.
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 (end of support)
- 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 (end of support)
- support for PHP 8.3
- SmtpMailer: fixed problem with empty response with slow SMTP server