Skip to content

MailSlurp::MailServerControllerApi

Load the API package

use MailSlurp::Object::MailServerControllerApi;

All URIs are relative to https://api.mailslurp.com

Method HTTP request Description
describe_mail_server_domain POST /mail-server/describe/domain Get DNS Mail Server records for a domain
get_dns_lookup POST /mail-server/describe/dns-lookup Lookup DNS records for a domain
get_ip_address POST /mail-server/describe/ip-address Get IP address for a domain
verify_email_address 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 describe_mail_server_domain(describe_domain_options => $describe_domain_options)

Get DNS Mail Server records for a domain

Example

use Data::Dumper;
use MailSlurp::MailServerControllerApi;
my $api_instance = MailSlurp::MailServerControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $describe_domain_options = MailSlurp::Object::DescribeDomainOptions->new(); # DescribeDomainOptions | 

eval { 
    my $result = $api_instance->describe_mail_server_domain(describe_domain_options => $describe_domain_options);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MailServerControllerApi->describe_mail_server_domain: $@n";
}

Parameters

Name Type Description Notes
describe_domain_options DescribeDomainOptions

Return type

DescribeMailServerDomainResult

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to ]

DNSLookupResults get_dns_lookup(dns_lookup_options => $dns_lookup_options)

Lookup DNS records for a domain

Example

use Data::Dumper;
use MailSlurp::MailServerControllerApi;
my $api_instance = MailSlurp::MailServerControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $dns_lookup_options = MailSlurp::Object::DNSLookupOptions->new(); # DNSLookupOptions | 

eval { 
    my $result = $api_instance->get_dns_lookup(dns_lookup_options => $dns_lookup_options);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MailServerControllerApi->get_dns_lookup: $@n";
}

Parameters

Name Type Description Notes
dns_lookup_options DNSLookupOptions

Return type

DNSLookupResults

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to ]

IPAddressResult get_ip_address(name => $name)

Get IP address for a domain

Example

use Data::Dumper;
use MailSlurp::MailServerControllerApi;
my $api_instance = MailSlurp::MailServerControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $name = "name_example"; # string | 

eval { 
    my $result = $api_instance->get_ip_address(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MailServerControllerApi->get_ip_address: $@n";
}

Parameters

Name Type Description Notes
name string

Return type

IPAddressResult

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to ]

EmailVerificationResult verify_email_address(verify_email_address_options => $verify_email_address_options)

Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server.

Example

use Data::Dumper;
use MailSlurp::MailServerControllerApi;
my $api_instance = MailSlurp::MailServerControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $verify_email_address_options = MailSlurp::Object::VerifyEmailAddressOptions->new(); # VerifyEmailAddressOptions | 

eval { 
    my $result = $api_instance->verify_email_address(verify_email_address_options => $verify_email_address_options);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MailServerControllerApi->verify_email_address: $@n";
}

Parameters

Name Type Description Notes
verify_email_address_options VerifyEmailAddressOptions

Return type

EmailVerificationResult

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to ]