struct Mailjet::Sender::Validate
- Mailjet::Sender::Validate
- Mailjet::Resource
- Struct
- Value
- Object
Overview
Validate a registered sender email address or domain. A sender domain (*@domain.com) is validated by checking the caller's rights, the existence of a metasender for that domain or by searching for the ownership token on the domain root or in the DNS.
https://dev.mailjet.com/email/reference/sender-addresses-and-domains/sender#v3_post_sender_sender_ID_validate
Defined in:
mailjet/resources/sender/validate.crClass Method Summary
-
.create(sender_id : ResourceId, client : Client = Client.new)
Check if sender is validated
Instance methods inherited from struct Mailjet::Resource
initialize
initialize
Constructor methods inherited from struct Mailjet::Resource
new
new
Class Method Detail
Check if sender is validated
validation = Mailjet::Sender::Validate.create(12345)
puts validation.validation_method
# => "ActivationEmail"
Note: If the user is already activated, a http status 400 will be
returned, which will result in a Mailjet::RequestException
to be
raised.