MailServerControllerAPI
All URIs are relative to https://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. |
open class func describeMailServerDomain( describeDomainOptions: DescribeDomainOptions) -> Promise<DescribeMailServerDomainResult>
Get DNS Mail Server records for a domain
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp
let describeDomainOptions = DescribeDomainOptions(domain: "domain_example") // DescribeDomainOptions |
// Get DNS Mail Server records for a domain
MailServerControllerAPI.describeMailServerDomain(describeDomainOptions: describeDomainOptions).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
describeDomainOptions | DescribeDomainOptions |
Return type
DescribeMailServerDomainResult
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to ]
Lookup DNS records for a domain
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp
let dNSLookupOptions = DNSLookupOptions(hostname: "hostname_example", recordTypes: ["recordTypes_example"], omitFinalDNSDot: false) // DNSLookupOptions |
// Lookup DNS records for a domain
MailServerControllerAPI.getDnsLookup(dNSLookupOptions: dNSLookupOptions).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
dNSLookupOptions | DNSLookupOptions |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to ]
Get IP address for a domain
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp
let name = "name_example" // String |
// Get IP address for a domain
MailServerControllerAPI.getIpAddress(name: name).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | String |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to ]
open class func verifyEmailAddress( verifyEmailAddressOptions: VerifyEmailAddressOptions) -> Promise<EmailVerificationResult>
Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp
let verifyEmailAddressOptions = VerifyEmailAddressOptions(mailServerDomain: "mailServerDomain_example", emailAddress: "emailAddress_example", senderEmailAddress: "senderEmailAddress_example", port: 123) // VerifyEmailAddressOptions |
// Deprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server.
MailServerControllerAPI.verifyEmailAddress(verifyEmailAddressOptions: verifyEmailAddressOptions).then {
// when the promise is fulfilled
}.always {
// regardless of whether the promise is fulfilled, or rejected
}.catch { errorType in
// when the promise is rejected
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
verifyEmailAddressOptions | VerifyEmailAddressOptions |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to ]