Commit Graph

111 Commits

Author SHA1 Message Date
Marcus Bointon f1231a9771
Backport changes for CVE-2018-19296 2018-11-15 23:27:24 +01:00
Marcus Bointon de9a30df63
Fix obtaining transaction ID when keepalive is active, fixes #1123 2017-08-11 14:46:32 +02:00
Marcus Bointon cb2be11013
Add failing test for #1094
Exercise more bad host checks
2017-07-26 22:51:02 +02:00
Marcus Bointon 4eaed21a6e
Avoid HHVM problem with file:// URL 2017-03-01 18:49:09 +01:00
Marcus Bointon 48e8cac067
Improve msgHTML tests 2017-01-06 22:30:55 +01:00
Marcus Bointon d1a7de4e94
Make test bootstrap a bit more flexible 2017-01-06 22:27:49 +01:00
Marcus Bointon dbbbf49d61
Unbreak tests 2016-12-24 15:26:34 +01:00
Marcus Bointon e0fefda64b
5.2.18 2016-12-24 01:06:31 +01:00
corentinheadoo a55b67d965 Fix: function call is not case-sensitive (#857) 2016-10-17 16:38:25 +02:00
Marcus Bointon d3c73b1739 Reset encoding on simple bodies, hopefully will fix #728! 2016-05-22 10:26:48 +02:00
Marcus Bointon c27c1597bc Fix build
Actually changes the test to test a different thing, still need to deal with what it was originally testing.
2016-05-22 01:25:10 +02:00
Marcus Bointon 1a7f380457 Fix test case 2016-05-09 11:36:15 +02:00
Marcus Bointon 77c0bc8d28 Add ability to inject custom validator and set custom default validator, fixes #573 2016-05-09 11:18:50 +02:00
František Svoboda fb82f2b9ea Add unit test that shows how address parser returns its result 2016-04-17 09:49:12 +02:00
Marcus b7151db9b7 Improve Windows compatibility for tests 2016-03-29 15:14:19 +02:00
Marcus 99bf646428 Ignore files created during tests 2016-03-16 10:02:38 +01:00
Synchro 9211ba6728 Ensure Message-ID is always valid, fixes #587 2016-01-07 16:28:39 +01:00
Marcus Bointon ea7bb516f1 Remove personal email address 2015-12-22 09:23:03 +01:00
Synchro 104359d993 Fix extra line break in getSentMIMEMessage(), fixes #589 2015-12-18 13:16:51 +01:00
Synchro 6687a96a18 Add test for line breaks in addresses vulnerability
Don't allow line breaks in addresses
Don't allow line breaks in SMTP commands
Rearrange tests so slowest tests run last
2015-11-01 11:12:04 +01:00
François B 0fa9518609 Allow addresses with IDN
Accepts Internationalized Domain Name everywhere PHPMailler expects
email addresses (To, CC, BCC, Reply-To, From, Sender and
ConfirmReadingTo).

Requires PHP >= 5.3 with "intl" extension installed and "mbstring"
extension enabled. Earlier versions don't see a change, i.e. specifying
an address with IDN still fails validation.

Follow-up to PR #516. Ran test/phpmailerTest.php

Other changes:

- From, Sender and ConfirmReadingTo addresses are now validated in
send(). Previously, only From and Sender addresses would be validated
only if specified via the setFrom() method. ConfirmReadingTo was never
validated.

- Half language strings for the 'invalid_address' message used colon at
the end and half didn't. Harmonized messages to always include colon,
and not add a second one with PHP code.
2015-10-14 22:02:07 +02:00
François B 4532cec50d Improve some comments and minor improvements
- Define an $error_message and reuse it, instead of recreating the
error message 3 times
- Use in_array() check instead of a regex
2015-10-13 22:38:15 +02:00
Roman Minchyn 870350756b [TASK]
replace "@type" annotation in favor of "@var" as proposed by phpdoc.org

Issue #513
2015-09-28 11:35:42 +02:00
Synchro c93759dcd1 Fix issues with embedding items without filenames, fixes #478 2015-08-25 12:01:39 +02:00
Synchro 6f266a2e42 Don't normalise line breaks when QP-encoding, fixes #464 2015-08-01 11:32:18 +02:00
Synchro 199bd9698b Add address parser, fixes #82, #145 2015-05-21 17:05:57 +02:00
Synchro c7e488d64b Add multiple attachment test 2015-05-04 10:59:56 +02:00
Synchro 9164e6d9eb Corrections to ISO text test
Only test ICS configs that are actually supported!
Fix missing headers when using signed messages
2015-04-29 20:46:10 +02:00
Synchro 4e8a80a657 Merge remote-tracking branch 'remotes/upstream/longlines' 2015-04-29 11:31:39 +02:00
Marcus Bointon 89bb0d6094 Fix file attachment test 2015-04-23 19:33:15 +02:00
Joris Berthelot 47fd54d04d Added custom header getter 2015-04-23 19:06:49 +02:00
Synchro b83f2a6b6b Merge remote-tracking branch 'remotes/upstream/master' into longlines 2015-04-17 15:16:13 +02:00
Synchro 50eac8739f Use multibyte text in tests
Add explicit test for UTF-8 with embedded images, see #279 and #377
Add ISO-8859-1 test
2015-03-25 19:22:55 +01:00
Synchro a071e68f46 Fix unique id / boundary problems when creating body before header
Add tests for line length transfer encoding override
2015-03-20 20:58:32 +01:00
Synchro 6e444ac33c Merge remote-tracking branch 'remotes/upstream/master' into longlines
# Conflicts:
#	class.phpmailer.php
#	test/phpmailerTest.php
2015-03-20 19:11:19 +01:00
Synchro 08f7807205 Add UTF-8 tests 2015-03-20 18:11:15 +01:00
Synchro c39b89fbf3 Tweak MIME preamble
Test output cleanup
2015-03-20 12:03:16 +01:00
Synchro 78f323d326 Tidy up format of test messages 2015-03-18 08:49:42 +01:00
Synchro 3bdaa171c6 Tidy up format of test messages 2015-03-17 19:00:07 +01:00
Synchro c8be94946e Add MIME preamble to all multipart message types, should fix #316
Tidy up format of test messages
2015-03-17 18:55:11 +01:00
Synchro d7c44d5a9e Add tests for line breaks in headers, see #372
Minor cleanup
2015-03-16 14:10:14 +01:00
Synchro 1ad1217759 typo 2015-03-16 10:24:39 +01:00
Synchro 4680d1f6cf Improve reporting of missing OpenSSL extension for SSl and TLS, see #378
Add 'missing extension' language string
Improve default handling of language strings
2015-03-16 10:23:38 +01:00
Synchro c506185d50 Add support for additional CA certificate when S/MIME signing, fixes #376 2015-03-06 16:35:29 +01:00
Synchro 541cfec405 More efficient, more readable loops in wrapText
Add multibyte wordwrap test
phpDoc cleanup in tests
2015-03-04 10:29:46 +01:00
Synchro c00fdf7b9a Fix inappropriate checks in set(), make more reliable 2015-01-28 12:18:11 +01:00
Synchro 43091014e0 Refactor and major cleanup of EasyPeasyICS, including a fix for #338 2015-01-09 14:13:47 +01:00
Synchro ecce82a38b Use autoloader 2015-01-05 09:13:09 +01:00
Synchro 127d26ef3c Remove 'advanced' html2text converter to resolve license clash, fixes #232
Allow injection of custom html2text converter, amend tests to cover it
Update README and related docs
2014-12-17 16:07:02 +01:00
Synchro b7f1dd174d Make tests a bit less verbose 2014-12-06 15:07:54 +01:00