class Sendgrid::Client
- Sendgrid::Client
- Reference
- Object
Defined in:
sendgrid/client.crConstructors
Instance Method Summary
- #construct_from(from : String | NamedTuple(name: String, email: String)) : Address
- #construct_to(to : String | Hash(String, String) | Array(String)) : Array(Address)
- #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")
- #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))
- #send(message : Message)
Constructor Detail
def self.new(api_key : String, address : String = "https://api.sendgrid.com/v3/mail/send")
#
Instance Method Detail
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")
#
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))
#