struct Mailjet::Message

Overview

Every time you send an email via Mailjet, a new message object is created. The resources below help you retrieve details about these messages - sending time, delivery and contact engagement info, recipients, message size, etc.

https://dev.mailjet.com/email/reference/messages/

Defined in:

mailjet/resources/message.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) #

Fetch all messages

messages = Mailjet::Message.all

Optionally with query params

messages = Mailjet::Message.all({contact_alt: "[email protected]"})

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

Fetch a message for the given id

message = Mailjet::Message.find(123456789)

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

Fetch a message for the given id

message = Mailjet::Message.find(123456789)

[View source]