nette/mail
📧 Nette Mail: A handy library for creating and sending emails in PHP.
v4.2.1
10M downloads/mo
#2269 most downloaded on Packagist
nette/mail
What this package is like to depend on
Last release 5 days ago
18 Aug 2026
Release timing varies
gaps range from 8 days to 11 months
Rarely documented
notes for 9 of 43 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
43 releases · first in 2014
5 releases in the last 12 months
see the full history below
Release timeline
43 releases · May 2014 to Aug 2026Releases
latest 43-
v4.2.118 Aug 2026Release notes
Open source →🐛 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.
- 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
-
v4.2.027 Jul 2026Nothing published for this version
-
v4.1.219 May 2026Release notes
Open source →- 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: [email protected]and 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.
- Interceptor – a new mailer wrapper that redirects all outgoing
-
v4.1.123 Apr 2026Release notes
Open source →🐛 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
- Message::setHtmlBody() – survives large inline
-
v4.1.027 Mar 2026Release notes
Open source →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.
-
-
v4.0.401 Aug 2025Release notes
Open source →- support for PHP 8.5
- optimized global function calls
- used attribute Deprecated
-
v4.0.305 Oct 2024Release notes
Open source →- SendmailMailer: the use of -f option in the mail command can be disabled (#98)
- support for PHP 8.4
-
v4.0.202 Oct 2023 -
v4.0.123 Sep 2023 -
v4.0.026 Jan 2023Nothing published for this version
-
v3.1.1102 Nov 2023Release notes
Open source →- support for PHP 8.3
- SmtpMailer: fixed problem with empty response with slow SMTP server
-
v3.1.1018 Jan 2023Nothing published for this version
-
v3.1.913 Oct 2022Nothing published for this version
-
v3.1.825 Aug 2021Nothing published for this version
-
v3.1.702 Jun 2021Nothing published for this version
-
v3.1.624 Feb 2021Nothing published for this version
-
v3.1.502 Nov 2020Nothing published for this version
-
v3.1.402 Aug 2020Nothing published for this version
-
v3.1.314 May 2020Nothing published for this version
-
v3.1.225 Mar 2020Nothing published for this version
-
v3.1.123 Feb 2020Nothing published for this version
-
v3.1.001 Jul 2019Nothing published for this version
-
v3.0.103 Jun 2019Nothing published for this version
-
v3.0.001 Apr 2019Nothing published for this version
-
v2.4.621 Nov 2018Nothing published for this version
-
v2.4.518 Mar 2018Nothing published for this version
-
v2.4.405 Dec 2017Nothing published for this version
-
v2.4.313 Jul 2017Nothing published for this version
-
v2.4.227 Jan 2017Nothing published for this version
-
v2.4.131 Jul 2016Nothing published for this version
-
v2.4.025 Jun 2016Nothing published for this version
-
v2.3.510 Apr 2016Nothing published for this version
-
v2.3.429 Nov 2015Nothing published for this version
-
v2.3.305 Oct 2015Nothing published for this version
-
v2.3.203 Jul 2015Nothing published for this version
-
v2.3.117 Jun 2015Nothing published for this version
-
v2.3.024 Feb 2015Nothing published for this version
-
v2.2.503 Dec 2015Nothing published for this version
-
v2.2.419 Jul 2015Nothing published for this version
-
v2.2.315 Oct 2014Nothing published for this version
-
v2.2.224 Aug 2014Nothing published for this version
-
v2.2.123 Jun 2014Nothing published for this version
-
v2.2.011 May 2014Nothing published for this version