Commit Graph

8 Commits

Author SHA1 Message Date
Marcus Bointon 22e81749ae
Switch from PHP CS fixer to phpcs and apply PSR12 reformatting 2020-10-13 15:08:42 +02: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
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 ec9148b673 Clean up indenting 2015-03-04 11:18:01 +01:00
Synchro 9989207655 phpdoc cleanup in language files 2014-08-11 11:44:17 +02:00
Synchro 406a2872b0 Phpdoc cleanup 2014-03-10 11:18:18 +01:00
VuThao d49c748046 change License for Vietnamese language 2014-03-10 16:18:39 +07:00
VuThao 6aae86bef5 add Vietnamese language 2014-03-08 15:23:29 +07:00