0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00
Commit Graph

1589 Commits

Author SHA1 Message Date
Markus Staab
8666152d9f
Fix phpdoc type (#1993) 2020-02-26 20:10:35 -05:00
Marcus Bointon
26d77e0783
Changelog 2020-02-24 15:53:01 +01:00
Marcus Bointon
a559852f2d
More thorough checks that attachment files are accessible, return error or throw exception if file has been deleted since adding it, fixes #1960 2020-02-24 15:49:49 +01:00
Marcus Bointon
589ec7d8f3
Access the $smtp instance the right way, fixes #1990 2020-02-24 15:01:57 +01:00
Marcus Bointon
b8f4e4e9c2
Allow empty header values after all, rearrange tests. See #1984 2020-02-20 12:30:47 +01:00
Marcus Bointon
af4c0ad322
CS 2020-02-20 12:05:01 +01:00
Marcus Bointon
416651e950
CS 2020-02-20 12:02:19 +01:00
Marcus Bointon
594fbb4182
Don't allow headers to contain breaks, fixes #1984 2020-02-20 12:01:48 +01:00
Marcus Bointon
f7858d61a5
Make DKIM header list check case-insensitive, see #1975 2020-02-19 09:48:05 +01:00
Marcus Bointon
2b6fcc4036
Changelog 2020-02-17 13:51:51 +01:00
Marcus Bointon
b294b44f20
DKIM tweaks (#1969)
* DKIM tweaks, see #1962, #1964, #1965

* Don't use the `l` tag in DKIM signature, fixes #1964

* CS

* CS

* Fix order of operations, see #1962

* Remove trailing line break from output of `DKIM_Add()`, see #1962
2020-02-17 12:26:58 +01:00
Marcus Bointon
6ae518109e
Ensure that even vars passed by reference are declared, fixes #1968 2020-02-17 09:26:43 +01:00
John Jago
cc8da73fa2 Fix link to unit tests (#1926) 2019-12-28 11:09:55 +01:00
Marcus Bointon
c5e61d0729
6.1.4 2019-12-10 12:17:38 +01:00
Marcus Bointon
30cecf76e4
Changelog 2019-12-10 12:16:20 +01:00
Patrick Kuijvenhoven
7eff728136 Feature improve host check (#1909)
* Let isValidHost() determine validness of host

- PHP way of doing so (https://github.com/php/php-src/pull/826)
- Improved and shortened regexp a bit

* Give more specific debug message in case host(entry) is invalid

* Rewrite filter_var checks

* Host [[<ipv6>]] is not valid
2019-12-10 11:48:50 +01:00
Marcus Bointon
05853dbd44
Changelog 2019-12-09 15:09:56 +01:00
Marien Fressinaud
078a5ad4d3 Add fallback to INTL_IDNA_VARIANT_2003 if needed (#1912)
INTL_IDNA_VARIANT_UTS46 exists from ICU 4.6, which has been released in
March 2011. However, some recent installations might have older ICU
versions (even with PHP 7+). In this situation `INTL_IDNA_VARIANT_UTS46`
will not exist and PHP will transform the constant into a string,
resulting in the following error:

    Warning: idn_to_ascii() expects parameter 3 to be integer, string
    given in /some/path/to/a/file.php on line XX

This commit allows to fallback to INTL_IDNA_VARIANT_2003 if it's needed
and possible. This variable is deprecated from PHP 7.2 and will be
removed in PHP 8, so we take care to test its existence as well.

References:

- https://github.com/FreshRSS/FreshRSS/pull/2680
- https://github.com/PrestaShop/PrestaShop/pull/11995
- https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003
2019-12-09 09:20:05 +01:00
Marcus Bointon
ae99006c51
Avoid excessive folding unless it's really needed. 2019-12-06 11:49:16 +01:00
Marcus Bointon
3ea7a8c3e8
Enable 7.4 now it's released, shift code coverage to it 2019-12-05 10:23:17 +01:00
Marcus Bointon
a25ae38e03
6.1.3 2019-11-21 10:37:46 +01:00
Marcus Bointon
2f2233b568
Changelog 2019-11-21 10:36:21 +01:00
Marcus Bointon
6244cf917f
Fix for #1683 2019-11-21 10:33:45 +01:00
Marcus Bointon
c0b63f19c8
Remove stray phpdoc ref, see #1898 2019-11-20 19:58:58 +01:00
Marcus Bointon
506eff4a59
Changelog 2019-11-19 16:08:31 +01:00
Marcus Bointon
dd6cf2eb51
Remove some unneeded dev dependencies, resolves conflict in #1898
Phpdocs now build using a github action
2019-11-19 16:07:01 +01:00
Marcus Bointon
4c5597c733
CS 2019-11-18 16:31:08 +01:00
Marcus Bointon
5f4fefe008
Changelog 2019-11-18 16:22:41 +01:00
Marcus Bointon
5c0af00d2c
Correct comment 2019-11-18 16:21:32 +01:00
Marcus Bointon
188cc38e2e
Use a constant to make it clear where this value comes from 2019-11-18 16:21:07 +01:00
Kirill Voronov
b468ff8b4a FIX int type (#1895)
* FIX int type

* Update SMTP.php

* damn it! :)

* Update SMTP.php
2019-11-15 11:41:25 +01:00
mhdalvin
4fd3c57b2d wrong location of is_callable()'s closing parenthesis (#1890) 2019-11-14 08:50:24 +01:00
Marcus Bointon
0ae8505d26 CS 2019-11-13 21:09:28 +01:00
Marcus Bointon
526b1836c9 6.1.2 2019-11-13 20:51:46 +01:00
Marcus Bointon
f39d72ba54 Changelog 2019-10-31 09:33:24 +01:00
Marcus Bointon
0d780d5091 Don't capture if attr match has hyphen prefix, see #1877 2019-10-30 22:40:36 +01:00
Marcus Bointon
a7c75c6328 Make background attribute pattern match more precise, see #1877 2019-10-30 18:21:19 +01:00
Marcus Bointon
4e9a7614ce Ensure header and body are separated by 2 line breaks 2019-10-23 15:15:15 +02:00
Marcus Bointon
3d800d7e54 Revert previous incorrect change 2019-10-23 15:14:18 +02:00
Marcus Bointon
ee7c65c781 Changelog 2019-10-23 14:45:48 +02:00
Marcus Bointon
ae5e6fa488 Ensure there's a line break after headers, fixes #1872, #1871 2019-10-23 14:42:32 +02:00
Marcus Bointon
564f139ca6 Fix wrong var name 2019-10-20 21:24:14 +02:00
Marcus Bointon
9638812426 Changelog 2019-10-20 20:57:10 +02:00
Marcus Bointon
11e8d23927 Merge branch 'dkimrevision' 2019-10-20 20:52:30 +02:00
Marcus Bointon
a038b50362 Change content-id header formatting, see #1691, #1864 2019-10-20 20:51:58 +02:00
Marcus Bointon
9282a06c8e Use shorter hashes for CID values, see #1691 2019-10-20 20:49:36 +02:00
Marcus Bointon
e4123e66b4 Merge branch 'master' into dkimrevision 2019-10-20 19:37:17 +02:00
Ali Ahmad
a0adbb2a7a makes slights changes to README.md (#1866) 2019-10-16 22:05:37 +02:00
Marcus Bointon
8087171624 Alter test to check UTF-8 in content-IDs, see #1691 2019-10-16 10:38:55 +02:00
Marcus Bointon
1a7387057a Only add a Content-ID header on inline attachments, see #1691 2019-10-16 10:37:19 +02:00