Commit Graph

2083 Commits

Author SHA1 Message Date
Marcus Bointon e43bac82ed
Changelog 2022-02-28 16:31:21 +01:00
Marcus Bointon ce32116f3b
Merge pull request #2526 from miken32/master
Provide additional error details after connection failures
2022-02-28 16:08:19 +01:00
Marcus Bointon 3525f1b6da
Give up on that test config 2022-02-28 16:03:27 +01:00
Marcus Bointon 70c20c6324
Rearrange tests to deal with version issues 2022-02-28 15:48:25 +01:00
Marcus Bointon cb53dde517
6.6.0 2022-02-28 15:26:21 +01:00
Marcus Bointon 03649a2ffb
CS 2022-02-28 15:11:05 +01:00
Marcus Bointon ec421d0680
CS 2022-02-28 15:09:27 +01:00
Marcus Bointon d8002e5482
Add simple OAuthTokenProvider tests 2022-02-28 15:06:17 +01:00
Marcus Bointon 5a4f1f3a2a
Changelog 2022-02-28 14:36:07 +01:00
Marcus Bointon 2611db096a
Merge pull request #2524 from pdscopes/feature/oauth-interface
#2523 OAuth Interface
2022-02-28 14:32:31 +01:00
Marcus Bointon a24029b108
Add corrected @covers tag 2022-02-18 18:21:21 +01:00
Marcus Bointon c0d9f7dd3c
6.5.4 2022-02-17 09:19:04 +01:00
Marcus Bointon 7421ac9186
Changelog 2022-02-17 09:18:00 +01:00
Marcus Bointon a876f998bd
Avoid PHPUnit 4.8 issue in PHP 5.5! 2022-02-16 20:03:35 +01:00
Marcus Bointon 6f6ce4f34a
Add XMailer tests 2022-02-16 19:32:38 +01:00
Marcus Bointon b930f1587f
Rejig setting XMailer to avoid PHP 8.1 issue, fixes #2635 2022-02-16 19:32:11 +01:00
Marcus Bointon 7ac1bd3ac0
Restrict shell-based mailers if we can't use them safely, fixes #966 2022-02-16 17:39:25 +01:00
Marcus Bointon 7e1da4fae3
Merge pull request #2594 from jrfnl/feature/ghactions-update-codecov-action
GH Actions: version update for `codecov/codecov-action`
2022-02-05 01:15:49 +01:00
jrfnl a4cf5b6e89 GH Actions: version update for `codecov/codecov-action`
A while back the `codecov/codecov-action` released a new major.

As per the release notes:
> On February 1, 2022, the v1 uploader will be full sunset and no longer function. This is due to the deprecation of the underlying bash uploader. This version uses the new uploader.

Considering Feb 2022 is creeping closer every day, updating seems prudent.

> Multiple fields have not been transferred from the bash uploader or have been deprecated. Notably many of the `functionalities` and `gcov_` arguments have been removed.

This repo does not seem to be affected by this.

Refs:
* https://github.com/codecov/codecov-action/releases/tag/v2.0.0
* https://github.com/codecov/codecov-action/releases/tag/v2.0.1
* https://github.com/codecov/codecov-action/releases/tag/v2.0.2
* https://github.com/codecov/codecov-action/releases/tag/v2.0.3
* https://github.com/codecov/codecov-action/releases/tag/v2.1.0
2021-12-26 19:38:16 +01:00
Marcus Bointon d4bf3504b9
Merge pull request #2595 from jrfnl/feature/ghactions-update-actions-checkout
GH Actions: version update for `actions/checkout`
2021-12-26 19:26:31 +01:00
jrfnl fbfc9f2909 GH Actions: version update for `actions/checkout`
Ref: https://github.com/actions/checkout/releases
2021-12-26 00:39:36 +01:00
Marcus Bointon 8c952fb573
Merge pull request #2590 from jrfnl/feature/ghactions-update-composer-action 2021-12-24 10:08:01 +01:00
jrfnl 7fe0ce642b GH Actions: version update for `ramsey/composer-install`
The action used to install Composer packages and handle the caching has released a new major (and some follow-up patch releases), which means, the action reference needs to be updated to benefit from it.

Refs:
* https://github.com/ramsey/composer-install/releases/tag/2.0.0
* https://github.com/ramsey/composer-install/releases/tag/2.0.1
* https://github.com/ramsey/composer-install/releases/tag/2.0.2
2021-12-24 05:09:10 +01:00
Marcus Bointon efd3262af8
Merge pull request #2589 from jrfnl/feature/composer-allow-phpcs-plugin 2021-12-23 08:19:51 +01:00
jrfnl d94fd80848 Composer: allow the PHPCS plugin
The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register external PHPCS standards with PHPCS.

As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run. This adds the necessary configuration for that.

Refs:
* https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
2021-12-23 03:05:11 +01:00
Marcus Bointon 8c7fe5e688
Merge pull request #2588 from nogaruki/patch-1
Update phpmailer.lang-fr.php
2021-12-22 19:56:30 +01:00
nogaruki f62d638c0b
Update phpmailer.lang-fr.php 2021-12-22 15:39:32 +01:00
Marcus Bointon a69cfb1860
Merge pull request #2584 from jrfnl/feature/php-8.2-fix
Bug fix for typo in property name (x2)
2021-12-18 17:51:36 +01:00
jrfnl 9c88a5ca9b Bug fix for typo in property name (x2)
The `$CharSet` property name as declared in the class starts with a capital, while there were two places in the code where the property was referred to as `$this->charSet`, which is a non-existent property.

In PHP 8.2, this is regarded as access to a dynamic property and will generate deprecation notices.

In effect, this meant that the `PHPMailer::parseAddresses()` method would be called with `null` as the value for the `$charset` parameter.
This `null` value would then subsequently be passed on to the PHP native `mb_internal_encoding()` function, which now didn't get the correct encoding.

This may have led to mail sending failures due to the address encoding being incorrect. If there are any bug reports open for this, it may be a good idea to evaluate whether they could be related to this bug.

Found by dseguy via Exakat.

Note: this issue was not flagged by the tests as the tests for the `PHPMailer::parseAddresses()` method, only test the method either with a valid value for encoding òr without the `$charset` parameter set, but not with an explicit `null` value..

As the `$charset` parameter for `PHPMailer::parseAddresses()` has a sensible default value and is not explicitly nullable, adding a test for this incorrect use of the method seems over the top.

I have, however, ensured that the non-nullability of the parameter is now documented for the method.

Refs:
* https://wiki.php.net/rfc/deprecate_dynamic_properties
* https://www.php.net/manual/en/function.mb-internal-encoding.php
2021-12-18 17:42:39 +01:00
Marcus Bointon ff796f28f6
Merge pull request #2583 from jrfnl/feature/composer-update-version-constraints
Composer: update version constraints
2021-12-18 17:12:27 +01:00
jrfnl d5a5ad19cd CS: minor cleanup
PHPCS 3.6.2 added a sniff for a PSR-12 rule which was previously not strictly checked: "No blank line after the opening brace of a class".

This fixes the newly flagged issues.
2021-12-18 04:08:22 +01:00
jrfnl 17cd8a8c11 Composer: update version constraints
Follow up on c1a6339108 which enabled PHP 8.1 support, let's make sure that the version constraints of (dev) dependencies are such that PHP 8.1 compatible versions will be installed.

Refs:
* https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases
* https://github.com/squizlabs/PHP_CodeSniffer/releases
2021-12-18 04:03:22 +01:00
Marcus Bointon a127e25118
Merge pull request #2578 from Fonata/patch-1
Add smtp_transaction_id pattern for Mailjet
2021-12-08 19:02:16 +01:00
Fonata 844c1fc933
Declare object variable $Smtp for PHP 8.2 compatibility
In PHP 8.2 dynamic property are deprecated.
2021-12-08 18:53:21 +01:00
Fonata 290b2e36d1
Add smtp_transaction_id pattern for Mailjet
Responses from the Mailjet servers look like this:  
`250 OK queued as a08b7f37-ed61-423a-ba75-38ed2fd4b54c`
2021-12-08 11:46:36 +01:00
Marcus Bointon d3f566012b
Fix bug in multiple file upload example, fixes #2569 2021-11-28 14:39:03 +01:00
Marcus Bointon baeb7cde6b
PHPMailer 6.5.3 2021-11-25 17:34:11 +01:00
Marcus Bointon 40ede8cc04
PHPMailer 6.5.2 2021-11-25 17:22:48 +01:00
Marcus Bointon c1a6339108
Enable PHP 8.1 2021-11-25 17:22:48 +01:00
Marcus Bointon 2649f9d70f Changelog 2021-11-19 19:33:09 +01:00
Marcus Bointon 1abbf09a3b CS 2021-11-19 19:32:01 +01:00
Marcus Bointon eaac722adf
Merge pull request #2564 from j-bernard/fix_2563
Fix #2563: Provide the right flags to IDN methods for email addresses conversion
2021-11-19 19:31:01 +01:00
Julien BERNARD 3c81f485df Fix #2563: Provide the right flags to IDN methods for email addresses conversion 2021-11-19 13:19:50 -05:00
Marcus Bointon e84b657160
Merge pull request #2558 from Fonata/patch-1
Improve spelling and code style in SMTP.php
2021-11-12 15:23:01 +01:00
Fonata 50cc644d0e
Avoid identical line in both `if` and `else` branch 2021-11-12 14:00:42 +01:00
Fonata 61d2d02515
Improve spelling in DocBlock 2021-11-12 13:59:28 +01:00
Fonata ea31254c41
Code style: explicit return value in getServerExt 2021-11-12 13:57:38 +01:00
Marcus Bointon 72c1e32d5e
Merge branch 'BlazOrazem/master' 2021-10-22 15:37:47 +02:00
Marcus Bointon ef4081ea99
Line breaks in translations are not supported as of 6.5.0 2021-10-22 15:37:35 +02:00
Marcus Bointon 477762e7fc
Merge branch 'patch-1' 2021-10-22 15:34:50 +02:00