What's the allowed format for characters in email addresses? Is there an API I can use to valid email addresses? When trying to use an email address of the format "[email protected]" I get an exception saying "The Primary SMTP Address is an invalid value".
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
As per the article I found HERE, you can start your verification with something like this:
Your email address can contain only letters, numbers, periods (.), hyphens (-), and underscores (_). It can't contain special characters, accented letters, or letters outside the Latin alphabet.
This is a shame. RFC5322 specifies that other characters such as pluses (+) should be allowed in the local part of an e-mail address. Trying to add guests to our O365 tenant who have plus signs in their e-mail addresses fails.
Added a list of the characters that aren't allowed.
Added a list of the characters that aren't allowed.
I'm not sure that this is a solution? You're fundamentally saying that sure, the standard says one thing, but you accept you're not going to ever meet that standard?
Just curious about this list of "special characters are not permitted in the email address" for the invitedUserEmailAddress property. I see that "At sign (@)" is in there. Is that a typo? (I don't know any email addresses without an @)
Most helpful comment
Just curious about this list of "special characters are not permitted in the email address" for the invitedUserEmailAddress property. I see that "At sign (@)" is in there. Is that a typo? (I don't know any email addresses without an @)