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

93 Commits

Author SHA1 Message Date
Synchro
9b3e13dc14 First draft of 5.4 2015-11-09 19:09:13 +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
Synchro
aa8e499b8a Deal with excessively long lines, see #314 2014-11-14 10:15:45 +01:00
Synchro
6365f4d6fd PHPDoc cleanup - consistent naming of integer and boolean types 2014-06-06 09:45:38 +02:00
Synchro
ca71445fb2 Make tests check for config
Generate debug output during POP tests
Ignore errors during POP3 disconnect
Update PHPUnit dependency to 4.1 in composer
2014-06-05 16:58:17 +02:00
Synchro
1a8fae1535 Remove fixed PHPUnit loader 2014-05-01 11:43:40 +02:00
Synchro
f03b54f01d Remove fixed PHPUnit loader
Add hhvm to test envs
2014-05-01 11:42:50 +02:00
Synchro
3d246420c4 Reorder tests to fail faster 2014-04-08 13:32:46 +02:00
Synchro
cc99349c15 Enable debug output during tests - increases coverage! 2014-04-03 13:49:44 +02:00
Synchro
943e0bd529 New graphics 2014-03-10 16:25:31 +01:00
Synchro
379b700e77 Add config for scrutinizer 2013-12-17 08:43:48 +01:00
Elan Ruusamäe
f302f1d497 fix parse error under php 5.2.17
```
$ php -l test/phpmailerTest.php
PHP Parse error:  syntax error, unexpected T_SL in
test/phpmailerTest.php on line 746
Errors parsing test/phpmailerTest.php
```
2013-11-09 14:53:45 +02:00
Synchro
41415a821f Manually merge my qmail patches for #126
Minor cleanups
2013-10-29 11:17:57 +01:00
Synchro
70ba3fbc0f Fix the way that SMTP host lists are parsed, see #112 2013-09-24 14:35:34 +02:00
Synchro
accd948dad Alter the way that SMTP host lists are parsed, fixes #112 2013-09-23 09:12:02 +02:00
Synchro
09a978fb1c Tests for messageID
Minor cleanup
2013-08-30 18:51:37 +02:00
Synchro
cd4ed6130a Fix POP3 test failures
Fake pop server can now specify a port to run on
2013-08-05 18:12:08 +02:00
Synchro
73093a32a3 Add fake pop server and POP-before-SMTP tests.
Update POP before SMTP example to use new static method.
2013-08-02 16:19:01 +02:00
Synchro
331d24bc82 Fix Q-encoding for strings containing '=', fixes #91 2013-08-01 09:55:26 +02:00
Synchro
d992ae6dc4 Centralise check for debug output
PSR-2 reformat

Enable debug output for failing test

Fix broken test
Comment clearout

Proper thin spaces before French punctuation

Fix phpdocs for addrAppend and addrFormat, fixes #81
Minor code cleanup, remove some local vars

See changelog.

More phpdoc cleanup
2013-07-30 12:51:15 +02:00