Skip to content

EmailValidator allows 'é' 'è' #21583

Closed
Closed
@FabienPapet

Description

@FabienPapet
Q A
Bug report? yes
Feature request? yes ?
BC Break report? maybe?
RFC? yes
Symfony version 3.2 (also on 2.7)

Maybe it is a bug, or this is expected behavior, but éàé@local.dev seems to be a valid email (with strict_mode off, default behavior)

The problem is when you want to send an email with this address, there is an Exception raised by swiftmailer because this email is not RFC822 compliant .

Shouldn't we use the the filter_var('éàé@local.dev', FILTER_VALIDATE_EMAIL) which follows RFC 822 instead of a regex here ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions