struct Mailjet::Send
- Mailjet::Send
- Mailjet::Resource
- Struct
- Value
- Object
Overview
Send API v3 and v3.1 are part of Mailjet's transactional messaging suite. Send API v3.1 gives more detailed feedback information on your sendings, while Send API v3 gives you a higher sending limit per single API call.
https://dev.mailjet.com/email/reference/send-emails/
Defined in:
mailjet/resources/send.crClass Method Summary
-
.messages(messages : Array(Hash) | Array(NamedTuple), version : String = "v3.1", client : Client = Client.new)
Deliver an array of messages
Instance methods inherited from struct Mailjet::Resource
initialize
initialize
Constructor methods inherited from struct Mailjet::Resource
new
new
Class Method Detail
def self.messages(messages : Array(Hash) | Array(NamedTuple), version : String = "v3.1", client : Client = Client.new)
#
Deliver an array of messages
messages = [
{...},
{...},
]
Mailjet::Send.messages(messages)
By default, the v3.1 send api is used, because it is more elegant and informative. If you need to use the v3 api instead, simply pass in the version number as the second parameter:
Mailjet::Send.messages(messages, "v3")