The classic email sending library for PHP
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.
clearCustomHeader
and replaceCustomHeader
methodssetSMTPXclientAttribute
and getSMTPXclientAttributes
methodsNote: most of these changes were in the unreleased 6.9.0 version.
This is a minor maintenance release.
The DSN support added in 6.8.0 reflects the DSN back to the user in an error message if it is invalid. If a DSN uses user-supplied input (a very bad idea), it opens a distant possibility of XSS if the host app does not escape output. In an abundance of caution, malformed DSNs are no longer reflected in error messages.
setAccessible
in PHP >= 8.1 in testsThis is a maintenance release with a new feature: DSN URL parsing, added by @voronkovich. This allows you to create a PHPMailer instance with most important settings by passing in a single URL, ideal for configuring PHPMailer from an environment variable.
Other changes:
This is a maintenance release
Happy Hacktoberfest!
This is a maintenance release.
This is a maintenance release.
The removal of the translation file is effectively a BC break, however, I don't expect it to affect anyone except that small group of users that request error messages in the Chamorro language, but are happy getting them in Chinese instead π.
This is a maintenance release.
Note that 6.6.1 was not released.
This is a minor feature release.
Prior to this version, any OAuth provider needed to extend the provided OAuth
base class, and this made it difficult to use with libraries other than ones based on the default league client packages. The OAuth property now accepts anything that implements the OAuthProviderInterface
, making it much easier to use things like Google's own OAuth classes. Existing implementations that extend the provided OAuth
base class will still work, as that base class now implements this interface too. Thanks to @pdscopes.
When TLS errors occurred in PHPMailer, the error messages were often missing important info that might help diagnose/solve the problem. These error messages should now be more informative. A minor change is that a TLS error on SMTP connect will now throw an exception if exceptions are enabled. Thanks to @miken32.