CheckValidEmailAddress in codeunit 9520 "Mail Management" #15484
Unanswered
TabrezAjaz
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I have gone through the CheckValidEmailAddress procedure in the "Mail Management" codeunit it looks like the code is incomplete, I was trying to enter some email addresses in table 18 Customer the field "E-Mail" accepting everything if it contains an @ symbol in between the text and it also allowed multiple dots in right part of the @ symbol as you can see in the attached image:

In contrast to unquoted local-parts, the addresses ".John.Doe"@example.com, "John.Doe."@example.com and "John..Doe"@example.com are allowed. So I am ignoring multiple ... dots on the left side of the @ symbol but on right side multiple dots are not allowed.
My code sample:
I know this is not what fulfills everyone's requirement, but thanks to Microsoft for an integration event that we can subscribe to add more conditions to existing E-Mail fields from where CheckValidEmailAddress method is called.
Thanks,
Tabrez Ajaz
Beta Was this translation helpful? Give feedback.
All reactions