This is a maintenance release fixing several long-standing issues.
- The Azure OAuth example now uses
ipwsystems/oauth2-entraid-providerinstead of the abandonedgreew/oauth2-azure-providerpackage, and also raises the minimum PHP version to 8.2 for that feature. - With
SingleToenabled, the sendmail and qmail transports no longer re-send to recipients of earlier messages (or duplicate recipients of the same message) when aPHPMailerinstance is reused orpreSend()is called more than once. Note thatSingleTohas been deprecated for some time. - The
Icalpart is now also included in messages with embedded images. Added a calendar invitation example. See #175. - When an SMTP connection fails, the error detail now includes the underlying reason, such as a TLS certificate verification failure, instead of only "Failed to connect to server". See #1405.
getToAddresses(),getCcAddresses(),getBccAddresses(),getReplyToAddresses()andgetAllRecipientAddresses()now accept an optional$includeQueuedboolean argument to also return addresses with IDN that are queued untilsend()is called, and are thus otherwise invisible until that happens. See #2565.- Ensure that all
trimcalls have a consistent, explicit character list to avoid different behaviour in PHP 8.6. - OAuth requests that receive a refresh token will only update the stored refresh token if one is present in the response.
- Further to the deprecation of
parseAddresses()in 7.2.0, callingparseSimplerAddresses()when the IMAP extension is not available will no longer trigger a runtime notice. Plan to stop relying on PHPMailer for this function! See #3359. DSNConfiguratornow URL-decodes the username and password, so credentials containing characters such as@,:or/work when percent-encoded in the DSN.DSNConfiguratorboolean options now honourfalse,off,noand0instead of treating any non-empty string as true, and any other value throws an exception, like an unknown option does.- Make use of BadSMTP's message saving to apply DKIM tests to received messages.
- Added Kazakh language translation, thanks to @rgusseinov.
- Completed the German, French, Spanish, Italian, Portuguese, Brazilian Portuguese, Swedish and Catalan translations. See #24.
Many thanks to @markhutsefluts for changes in this version.
What's Changed
- Composer: normalize the file by @jrfnl in #3374
- Update the dead RFC822 parser link in the parseAddresses docblock by @farisbasha in #3377
- Update oauth refresh token by @MattAllatt in #3376
- GH Actions: Bump github/codeql-action/upload-sarif from 4.39.1 to 4.39.3 in the action-runners group by @dependabot[bot] in #3379
- Fix comment typo by @CharoenwitKunna in #3381
- Keep the OAuth refresh token when the provider doesn't issue a new one by @Dev-next-gen in #3380
- Add Kazakh translation by @rgusseinov in #3382
- Verify DKIM signatures on the messages badsmtp stores by @Vishnu-0303 in #3378
- Include the SMTP server response on authentication failures by @joshbarros in #3384
- Optionally include queued (IDN) addresses in get*Addresses() by @markhutsefluts in #3385
- Include the reason in SMTP connection errors by @markhutsefluts in #3386
- Complete eight translations (#24) by @markhutsefluts in #3388
- Don't label ISO-2022-JP header values as us-ascii by @dualfroz in #3368
- Encode control characters in address names instead of C-escaping them by @youdie006 in #3367
- Reset SingleToArray in createHeader() to avoid accumulating recipients by @lingyicute in #3390
- Use ipwsystems/oauth2-entraid-provider for Azure XOAUTH2 and keep the PKCE verifier by @greew in #3383
- DSN: decode percent-encoded credentials and fix boolean options by @mdalikadar in #3363
- DSN: reject invalid values for boolean options by @markhutsefluts in #3392
- Fold the To list passed to mail() by @dualfroz in #3364
- Include Ical in messages with embedded images, add calendar invite example (#175) by @markhutsefluts in #3389
New Contributors
- @farisbasha made their first contribution in #3377
- @MattAllatt made their first contribution in #3376
- @CharoenwitKunna made their first contribution in #3381
- @Dev-next-gen made their first contribution in #3380
- @rgusseinov made their first contribution in #3382
- @Vishnu-0303 made their first contribution in #3378
- @joshbarros made their first contribution in #3384
- @markhutsefluts made their first contribution in #3385
- @youdie006 made their first contribution in #3367
- @lingyicute made their first contribution in #3390
- @mdalikadar made their first contribution in #3363
Full Changelog: v7.2.0...v7.3.0