Download Latest Version PHPMailer 7.1.1 source code.tar.gz (120.0 kB)
Email in envelope

Get an email when there's a new version of PHPMailer

Home / v7.1.0
Name Modified Size InfoDownloads / Week
Parent folder
PHPMailer 7.1.0 source code.tar.gz 2026-05-15 120.0 kB
PHPMailer 7.1.0 source code.zip 2026-05-15 157.3 kB
README.md 2026-05-15 1.8 kB
Totals: 3 Items   279.2 kB 1

This is a maintenance and minor security release.

What's changed

  • Validate MessageDate before including it in headers.
  • Minor feature: some common non-RFC date formats and DateTime instances are now automatically converted to the right format for MessageDate.
  • Strip breaks from XMailer, ContentType, and CharSet properties.
  • Strip breaks from username and password properties before use in POP3.
  • Enforce strict checks on Encoding values.
  • Ease BC IMAP issues by allowing the parseAddresses $useimap parameter to be false or null without triggering a deprecation warning.
  • Updated Turkish and Norwegian translations.
  • Test case cleanup and improvements by @jrfnl.
  • Fix crash if Mailer ended up empty.
  • Use Ubuntu 24.04 for tests.

Security changes

We received several duplicate reports of the same issue, buried deep in reams of AI slop. Specifically, several PHPMailer properties and two POP3 properties were not sanitised before use. These properties are typically only set by developers, not exposed to user input, and would also have to be mishandled by host applications to become a problem. Nevertheless, these properties have now been rendered harmless.

New Contributors

Full Changelog: https://github.com/PHPMailer/PHPMailer/compare/v7.0.2...v7.1.0

Source: README.md, updated 2026-05-15