Verify an Email Address using C#

Install-Package Cloudmersive.APIClient.NETCore.Validate -Version 2.0.2
using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NETCore.Validate.Api;
using Cloudmersive.APIClient.NETCore.Validate.Client;
using Cloudmersive.APIClient.NETCore.Validate.Model;
namespace Example
{
public class EmailFullValidationExample
{
public void main()
{
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
var apiInstance = new EmailApi();
var email = email_example; // string | Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
try
{
// Fully validate an email address
FullEmailValidationResponse result = apiInstance.EmailFullValidation(email);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EmailApi.EmailFullValidation: " + e.Message );
}
}
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.