struct Mailjet::DNS

Overview

Whenever you register a new sender or metasender address with a new domain name, a new DNS object is created for this domain. Use the resources below to retrieve the DNS records you need to complete a successful domain validation and SPF / DKIM authentication.

https://dev.mailjet.com/email/reference/sender-addresses-and-domains/dns/

Defined in:

mailjet/resources/dns.cr
mailjet/resources/dns/check.cr

Class Method Summary

Instance methods inherited from struct Mailjet::Resource

initialize initialize

Constructor methods inherited from struct Mailjet::Resource

new new

Class Method Detail

def self.all(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new) #

Find all dns settings

response = Mailjet::Contactfilter.all
settings = response.data

[View source]
def self.find(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new) #

Find dns settings for one record

settings = Mailjet::Contactfilter.find(112334)

[View source]
def self.find(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new) #

Find dns settings for one record

settings = Mailjet::Contactfilter.find(112334)

[View source]