mailslurp_netstandard_2x.Api.MailServerControllerApi
All URIs are relative to https://csharp.api.mailslurp.com
Method | HTTP request | Description |
---|---|---|
DescribeMailServerDomain | POST /mail-server/describe/domain | Get DNS Mail Server records for a domain |
GetDnsLookup | POST /mail-server/describe/dns-lookup | Lookup DNS records for a domain |
GetIpAddress | POST /mail-server/describe/ip-address | Get IP address for a domain |
VerifyEmailAddress | POST /mail-server/verify/email-address | Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server. |
DescribeMailServerDomainResult DescribeMailServerDomain (DescribeDomainOptions describeDomainOptions)
Get DNS Mail Server records for a domain
Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp_netstandard_2x.Api;
using mailslurp_netstandard_2x.Client;
using mailslurp_netstandard_2x.Model;
namespace Example
{
public class DescribeMailServerDomainExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://csharp.api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new MailServerControllerApi(config);
var describeDomainOptions = new DescribeDomainOptions(); // DescribeDomainOptions |
try
{
// Get DNS Mail Server records for a domain
DescribeMailServerDomainResult result = apiInstance.DescribeMailServerDomain(describeDomainOptions);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MailServerControllerApi.DescribeMailServerDomain: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
describeDomainOptions | DescribeDomainOptions |
Return type
DescribeMailServerDomainResult
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to ]
DNSLookupResults GetDnsLookup (DNSLookupOptions dNSLookupOptions)
Lookup DNS records for a domain
Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp_netstandard_2x.Api;
using mailslurp_netstandard_2x.Client;
using mailslurp_netstandard_2x.Model;
namespace Example
{
public class GetDnsLookupExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://csharp.api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new MailServerControllerApi(config);
var dNSLookupOptions = new DNSLookupOptions(); // DNSLookupOptions |
try
{
// Lookup DNS records for a domain
DNSLookupResults result = apiInstance.GetDnsLookup(dNSLookupOptions);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MailServerControllerApi.GetDnsLookup: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
dNSLookupOptions | DNSLookupOptions |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to ]
IPAddressResult GetIpAddress (string name)
Get IP address for a domain
Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp_netstandard_2x.Api;
using mailslurp_netstandard_2x.Client;
using mailslurp_netstandard_2x.Model;
namespace Example
{
public class GetIpAddressExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://csharp.api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new MailServerControllerApi(config);
var name = name_example; // string |
try
{
// Get IP address for a domain
IPAddressResult result = apiInstance.GetIpAddress(name);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MailServerControllerApi.GetIpAddress: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | string |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to ]
EmailVerificationResult VerifyEmailAddress (VerifyEmailAddressOptions verifyEmailAddressOptions)
Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server.
Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp_netstandard_2x.Api;
using mailslurp_netstandard_2x.Client;
using mailslurp_netstandard_2x.Model;
namespace Example
{
public class VerifyEmailAddressExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://csharp.api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new MailServerControllerApi(config);
var verifyEmailAddressOptions = new VerifyEmailAddressOptions(); // VerifyEmailAddressOptions |
try
{
// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server.
EmailVerificationResult result = apiInstance.VerifyEmailAddress(verifyEmailAddressOptions);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MailServerControllerApi.VerifyEmailAddress: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
verifyEmailAddressOptions | VerifyEmailAddressOptions |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to ]