API to verify if mail id is valid or not

Dalmia, Shashank 1 Reputation point
2022-09-12T12:17:14.837+00:00

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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2022-09-12T12:28:38.267+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.