Skip to content

[BUG]: Email validation does not allow UTF8SMTP #16637

Description

@noone-silent

Describe the bug
With the UTF8SMTP Extension, it is possible to allow any utf-8 character in the local part. Also domain names can have umlauts, but needs different parsing. RFC: https://www.rfc-editor.org/rfc/rfc5336#section-3.2

To Reproduce
Use any email, like täst@example.com

Steps to reproduce the behavior:

            $validation = new Validation();
            $validation->add('email', new Validation\Validator\Email());
            var_dump($validation->validate(['email' => 'täst@example.com']));

Expected behavior
Add a flag/option to allow UTF8SMTP email addresses.

When this filter is set, pass FILTER_FLAG_EMAIL_UNICODE to the filter_var function.

Details

  • Phalcon version: v5.8.0
  • PHP Version: 8.2.20
  • Operating System: debian
  • Installation type: Compiling from source
  • Zephir version (if any): -
  • Server: Nginx
  • Other related info (Database, table schema): MariaDB

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.0The issues we want to solve in the 5.0 releasebugA bug reportstatus: mediumMedium

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions