Skip to content

[Bug]: Email Address Without Top Domain is Validated #6451

@Dan-Karlsson

Description

@Dan-Karlsson

Describe the issue

The email address test@contoso is validated as a correct address. This makes it possible to enter bad email addresses which isn't noticed until trying to send.

Image

Expected behavior

The email address should be stopped at validation, not when sending the email.

Steps to reproduce

  1. In Email Accounts press Send Test Email.
  2. Select Other...
  3. Enter test@contoso
  4. The error ends up in the Outbox instead of a validation error

Alternate way to reproduce in Cronus

  1. Go to customer 10000
  2. Remove .com after contoso in field Email
  3. Don't get a validation error

Additional context

It is possible to fix in codeunit 8889 "Email Account Impl." in function ValidateEmailAddress().

But maybe it should be fixed in DotNet MailAddress.MailAddress() instead?

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedThe issue is approvedIntegrationGitHub request for Integration area

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions