class Sendgrid::Client

Defined in:

sendgrid/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_key : String, address : String = "https://api.sendgrid.com/v3/mail/send") #

[View source]

Instance Method Detail

def construct_from(from : String | NamedTuple(name: String, email: String)) : Address #

[View source]
def construct_to(to : String | Hash(String, String) | Array(String)) : Array(Address) #

[View source]
def message(to : String | Hash(String, String) | Array(String), from : String | NamedTuple(name: String, email: String), subject : String, content : String, cc : String | Hash(String, String) | Array(String) | Nil = nil, bcc : String | Hash(String, String) | Array(String) | Nil = nil, attachment_content : String | Nil = nil, attachment_type : String | Nil = nil, attachment_name : String | Nil = nil, content_type : String = "text/plain") #

[View source]
def message(to : String | Hash(String, String) | Array(String), from : String | NamedTuple(name: String, email: String), subject : String, template_id : String, template_data : Hash(String, String)) #

[View source]
def send(message : Message) #

[View source]