email addresses with german umlauts are not validated correctly

Description

email addresses with german umlauts (and I'm sure also for all other non-ascii characters) like test@müller.de are not validated correctly.

The result of isValid("email","test@müller.de") is false but should be true.

When using this address in cfmail like
<cfmail from="..." to="test@müller.de" ...>
results in an error saying
One of the following attribtues must be defined (to, cc, bcc)

a workaround is converting the email address to punycode manually:
createobject("java", "java.net.IDN").toAscii("test@müller.de")

But this should be done automatically by Lucee. The developer exception is, that email addresses like this are recognized as valid addresses, because they are.

This is really a blocker, because it means, that all applications validating these addresses fail with emails with non-ascii characters!

Environment

None

Activity

Show:

Pothys - MitrahSoft 29 January 2018 at 13:14

I've confirmed the issue happened on latest version of lucee 5.2.6.51. In lucee cfmail "to" attribute has a value non-ascii characters it throw error like "One of the following attribtues must be defined [ to, cc, bcc ]". In ACF also doesn't accepts non-Ascii character it throws error like "The value of the attribute to, which is currently test@müller.de, is invalid." will confirm about the issue.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 26 January 2018 at 03:49
Updated 6 January 2022 at 15:10
Resolved 16 February 2018 at 15:16

Flag notifications