Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default validation fails with umlaut in name part #1907

Closed
JayQ1982 opened this issue Nov 29, 2019 · 1 comment
Closed

Default validation fails with umlaut in name part #1907

JayQ1982 opened this issue Nov 29, 2019 · 1 comment

Comments

@JayQ1982
Copy link

Validation of "testümläü[email protected]" fails when i use default $patternselect value "php".

This could be fixed in validateAddress()-method by changing

return (bool) filter_var($address, FILTER_VALIDATE_EMAIL);
to
return (bool) filter_var($address, FILTER_VALIDATE_EMAIL, FILTER_FLAG_EMAIL_UNICODE);

@Synchro
Copy link
Member

Synchro commented Nov 29, 2019

That's because Unicode in the local part is not valid unless you support RFC6531, which PHPMailer does not (yet), and it involves a lot more than changing address validation; it's also dependent on the server you connect to supporting it.

@Synchro Synchro closed this as completed Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants