You have to be more specific here, what exactly do you mean by "valid"? You can validate whether the string value provided by the users matches the requirements for an email address as per RFC, there are ready-to-use regular expression patterns you can find online.
Validating that the address itself exists and can receive emails is another story, there is no way to do that for any external address, apart from sending a test email. If your scenario is for internal emails only, you can use the Get-ExORecipient cmdlet or the underlying endpoint to verify that a valid recipient exists in the organization.
API to verify if mail id is valid or not
Dalmia, Shashank
1
Reputation point
Need to check if the email id provided by user is even valid or not.
How it can be done using outlook API which I can integrate in my system
Outlook Windows Classic Outlook for Windows For business
9,598 questions
1 answer
Sort by: Most helpful
-
Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
2022-09-12T12:28:38.267+00:00