Skip to content

Releases: PHPMailer/PHPMailer

PHPMailer 7.0.2

09 Jan 18:04
ebf1655

Choose a tag to compare

This is a maintenance release.

What's Changed

  • Fixes for sendmail parameter problems in WordPress, thanks to @SirLouen
  • Reduce memory consumption when sending large attachments by @RobinvanderVliet

Full Changelog: v7.0.1...v7.0.2

PHPMailer 7.0.1

25 Nov 07:21
360ae91

Choose a tag to compare

Version 7.0.1 (November 25th, 2025)

  • Use From domain when generating CIDs in msgHTML.

  • Update to PHPCompatibility 10, resolve numerous PHPCS issues in PHP 8.5.

  • Revise GitHub actions for PHP 8.5 and experimental 8.6 tests.

  • Switch gmail example from the deprecated IMAP extension to use directorytree/imapengine for IMAP uploads.

  • Set htmlspecialchars() flags explicitly and consistently.

  • Convert XOAUTH2 token exceptions into PHPMailer Exceptions. The original exception is available as an inner exception.

  • Deprecate VERSION constants in POP3 and SMTP classes.

  • Remove dependency on roave/security-advisories; it's now built into composer 2.9.

  • Update Dutch, Esperanto, and Norwegian translations.

  • What's Changed

  • Improving docs and translations for deprecated useimap by @SirLouen in #3241

  • GH Actions: Bump the action-runners group with 2 updates by @dependabot[bot] in #3245

  • Add cid default domain by @mariuszkrzaczkowski in #3036

  • GH Actions: Bump github/codeql-action from 3.30.6 to 4.30.8 by @dependabot[bot] in #3247

  • Corrected Polish translation by @KaminskiDaniell in #3248

  • GH Actions: Bump github/codeql-action from 4.30.8 to 4.30.9 in the action-runners group by @dependabot[bot] in #3253

  • GH Actions: Bump actions/upload-artifact from 4.6.2 to 5.0.0 by @dependabot[bot] in #3258

  • GH Actions: Bump github/codeql-action from 4.30.9 to 4.31.0 in the action-runners group by @dependabot[bot] in #3259

  • Update phpmailer.lang-nb.php by @wera-as in #3252

  • Add XOAUTH2 token exception handling by @greew in #3261

  • Added missing Danish translations by @greew in #3262

  • GH Actions: Bump github/codeql-action from 4.31.0 to 4.31.2 in the action-runners group by @dependabot[bot] in #3264

  • Recreate Esperanto translations by @RobinvanderVliet in #3266

  • GH Actions: Bump JamesIves/github-pages-deploy-action from 4.7.3 to 4.7.4 in the action-runners group by @dependabot[bot] in #3268

  • Update Dutch translations by @RobinvanderVliet in #3267

  • Composer: remove roave/security-advisories by @jrfnl in #3269

  • GH Actions: allow test runs to succeed on fork by @jrfnl in #3270

  • GH Actions: update for the release of PHP 8.5 by @jrfnl in #3272

  • Tests: remove unused import use statements by @jrfnl in #3275

  • GH Actions: Bump github/codeql-action from 4.31.2 to 4.31.4 in the action-runners group by @dependabot[bot] in #3277

  • GH Actions: Bump actions/checkout from 5.0.0 to 6.0.0 by @dependabot[bot] in #3278

  • Use PHPCompatibility 10.0.0(-alpha1) by @jrfnl in #3276

New Contributors

Full Changelog: v7.0.0...v7.0.1

PHPMailer 7.0.0

15 Oct 16:57
c711131

Choose a tag to compare

This is exactly the same as version 6.11.1 but bumps the major version number to indicate the presence of a BC break in child classes. The changes in 6.11.0 and 6.11.1 have been reverted in 6.12.0. If you have code that depends on those changes, please upgrade to 7.0.0 instead. Apologies for the mix up.

Specifically, lang(), setLanguage(), and $language are now static, and should be called statically.

PHPMailer 6.12.0

15 Oct 16:54
d1ac35d

Choose a tag to compare

This is a maintenance release that's exactly the same as 6.10.0, reverting everything that was released in 6.11.0 and 6.11.1 which inadvertently introduced a BC break affecting child classes. Apologies for the mix up.

Important

If you have code that depends on the changes that were in 6.11.0 and 6.11.1, please upgrade to 7.0.0 instead.

Full Changelog: v6.11.1...v6.12.0

PHPMailer 6.11.1

30 Sep 11:56
d9e3b36

Choose a tag to compare

Important

Please note changes to language-related elements in the previous 6.11.0 release.

What's Changed

  • GH Actions: Bump github/codeql-action from 3.30.3 to 3.30.5 in the action-runners group by @dependabot[bot] in #3238
  • Regressing deprecatedArg by @SirLouen in #3240

Full Changelog: v6.11.0...v6.11.1

PHPMailer 6.11.0

29 Sep 17:54
9500c37

Choose a tag to compare

This is a large maintenance release fuelled by the contributions of @SirLouen and @jrfnl.

Important

While there are no public changes that affect backward compatibility, there are changes to protected elements that may affect child classes. Specifically, lang(), setLanguage(), and $language are now static, and should be called statically.

What's Changed

  • XOAUTH : Added support for long token by @llemoine in #3170
  • GH Actions: don't run cron jobs on forks by @jrfnl in #3187
  • GH Actions: update PHP ini configuration by @jrfnl in #3190
  • Enhance 'interrupted system call' check to handle non-english locale by @christianseel in #3193
  • Fix linting issue on PHP 8.5 by @jrfnl in #3211
  • PHP 8.5 | Tests: prevent deprecation notice for Reflection*::setAccessible() by @jrfnl in #3191
  • Sorting the Array problem in doCallback by @SirLouen in #3208
  • Staticfying the Language Pack by @SirLouen in #3216
  • Modularizing and Simplifying the Address Parser by @SirLouen in #3217
  • Fix encoding header for SMIME signed messages with long lines by @schorschii in #3226
  • GH Actions: "pin" all action runners by @jrfnl in #3229
  • GH Actions/scorecard: update permissions by @jrfnl in #3228
  • GH Actions: Bump actions/checkout from 4.3.0 to 5.0.0 by @dependabot[bot] in #3230
  • GH Actions: Bump codecov/codecov-action from 4 to 5 by @dependabot[bot] in #3113
  • GH Actions: do not persist credentials by @jrfnl in #3231
  • GH Actions: set permissions for each workflow/job by @jrfnl in #3232
  • Improving Copy for mbstring intl test requirements by @SirLouen in #3200
  • Adding Name Encoding Improvement without MbString Extension by @SirLouen in #3202
  • Reply-To to Indexed Array Conversion by @SirLouen in #3237

New Contributors

Full Changelog: v6.10.0...v6.11.0

v6.10.0

25 Apr 12:41
bf74d75

Choose a tag to compare

PHPMailer 6.10.0

This is a feature and maintenance release introducing full support for RFC 6531 SMTPUTF8, meaning that you are now free to use Unicode characters in email addresses, such as JøeÜser@example.com, and everywhere else, without any complicated encoding schemes. Using this feature requires that you send through a mail server that advertises support for SMTPUTF8. For full details see SMTPUTF8.md.

What else changed

  • Do not add .editorconfig file to releases by @ziegenberg in #3130
  • Replace Swiftmailer with Symfony Mailer by @no-one in #3132
  • Remove a space by @no-one in #3133
  • Fix the smtp error ErrorInfo msg: Troubleshooting url glued by @sudwebdesign in #3148
  • Add missing translations and improve grammar for European Portuguese by @sudojoao in #3147

New Contributors

Full Changelog: v6.9.3...v6.10.0

PHPMailer 6.9.3

24 Nov 18:06
2f5c94f

Choose a tag to compare

PHPMailer 6.9.3

This is a maintenance release, adding support for the release version of PHP 8.4, and experimental support for PHP 8.5.

What's Changed

New Contributors

Full Changelog: v6.9.2...v6.9.3

PHPMailer 6.9.2

09 Oct 10:13
a7b17b4

Choose a tag to compare

PHPMailer 6.9.2

This is a maintenance release.

Changes

  • Escape dots in SMTP transaction ID patterns
  • Add link to aboutmy.email testing service in docs
  • Add a more comprehensive example for using XOAUTH2 with gmail and Azure, thanks to @decomplexity
  • Update Turkish, Spanish, Japanese, Russian, French translations
  • Add Urdu & Kurdish (Sorani) translations
  • Fix broken links in docs and comments, avoid http links, correct link to LGPL 2.1 license file
  • Cleaner PSR-3 SMTP debug logging
  • Bump GitHub action versions
  • Fix error handler scope issue in POP3 and SMTP classes
  • Numerous test improvements by @jrfnl

PHPMailer 6.9.1

25 Nov 22:37
039de17

Choose a tag to compare

PHPMailer 6.9.1

This is a maintenance and feature release, adding support for the official release of PHP 8.3, methods for removing and replacing custom headers, XCLIENT support, and links to a new way of implementing XOAUTH2 authentication.

The only change likely to have any impact on existing code is that PHPMailer previously attempted to use opportunistic STARTTLS encryption when connecting to localhost, which was unlikely to work. The workaround required setting SMTPAutoTLS = false, but that's no longer required. You may still need to use this setting when connecting to literal IPs.

Changes

  • Add support for official release of PHP 8.3, add experimental support for PHP 8.4
  • Add clearCustomHeader and replaceCustomHeader methods
  • Add support for the XCLIENT SMTP extension with setSMTPXclientAttribute and getSMTPXclientAttributes methods
  • Don't attempt opportunistic TLS when connecting to localhost
  • Add package link and example showing how to use @decomplexity's SendOauth2 wrapper
  • Update example to show a better way of using an SMTP subclass
  • Avoid some more deprecation warnings
  • Update Danish and Polish translations
  • Add Bengali and Assamese translations

Note: most of these changes were in the unreleased 6.9.0 version.