Skip to content

Releases

Released version 4.2.3

Choose a tag to compare

@dg dg released this 06 Nov 01:27
  • file configuration key – point it to a directory and every email is saved there as an .eml file instead of being sent, with DKIM signing, redirect and the Tracy panel working just as with a real transport
  • accessToken configuration 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: flex survives 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 (Sender or From) instead of the web server's host or the machine name
  • SmtpMailer now throws InvalidArgumentException for an unknown encryption (BC break) – a value such as 'TLS', 'starttls' or an empty string used to mean an unencrypted connection; use 'ssl', 'tls' or null. 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: 0 leaves the limits to PHP's default_socket_timeout, and a rejected EHLO is reported as such, staying retryable in FallbackMailer when the rejection is temporary

Released version 4.2.2

Choose a tag to compare

@dg dg released this 27 Oct 09:48
  • Support for PHP 8.6
  • The [[...]] placeholder in HTML bodies now embeds only an image inside the base path given to embedImages(); 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

Choose a tag to compare

@dg dg released this 18 Aug 10:12

🐛 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-string before MIME encoding, which buried the quotes inside the base64 payload and decoded them as part of the name: Objednávky domena.cz arrived as "Objednávky domena.cz". Quoting is now reserved for characters that could genuinely restructure an address list (, ; : < > @ " \), so Kdo 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

Choose a tag to compare

@dg dg released this 19 May 17:58
  • Interceptor – a new mailer wrapper that redirects all outgoing To/Cc/Bcc (plus read-receipt headers) to one fixed address, preserves the originals in X-Original-* headers, and optionally adds a subject prefix. No more sending test mail to real customers by accident. Wire it via DI with mail.redirect: dev@example.com and it slots in automatically.
  • MailTracy Bar panel – a new Bridges/MailTracy/MailPanel subscribes to Interceptor::$onSent and 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 with mail: debugger: true|false.
  • HtmlComposer – a standalone HTML pre-processing pipeline you can drive directly: opt in to inlineCss() (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

Choose a tag to compare

@dg dg released this 23 Apr 22:32

🐛 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="…" or url('…') contains spaces, like "holiday photos/beach.jpg" (#97)
  • Message::setHtmlBody() – embeds images whose quoted path contains parentheses, so the classic screenshot (1).png naming no longer silently breaks (#89)
  • SendmailMailer – signs the full message so DKIM now covers Subject and To headers, 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, :checked no 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

Choose a tag to compare

@dg dg released this 27 Mar 01:21

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 inline style attributes, making your HTML emails render consistently across email clients. Features a single-regex tokenizer, full CSS nesting support, Dom\HTMLDocument selector matching (PHP 8.4+), and automatic Outlook-compatible HTML attribute generation (bgcolor, width, align, etc.). <style> tags are preserved so @media queries keep working.

Released version 4.0.4 (end of support)

Choose a tag to compare

@dg dg released this 30 Oct 22:41
  • support for PHP 8.5
  • optimized global function calls
  • used attribute Deprecated

Released version 4.0.3

Choose a tag to compare

@dg dg released this 04 Oct 23:02
  • SendmailMailer: the use of -f option in the mail command can be disabled (#98)
  • support for PHP 8.4

Released version 4.0.2

Choose a tag to compare

@dg dg released this 02 Nov 23:21
  • SmtpMailer: fixed problem with empty response with slow SMTP server

Released version 3.1.11 (end of support)

Choose a tag to compare

@dg dg released this 02 Nov 23:20
  • support for PHP 8.3
  • SmtpMailer: fixed problem with empty response with slow SMTP server
⌂ 换网址