Class: Courrier::Email::Providers::Brevo
- Defined in:
- lib/courrier/email/providers/brevo.rb
Constant Summary collapse
- ENDPOINT_URL =
"https://api.brevo.com/v3/smtp/email"
Instance Method Summary collapse
Methods inherited from Base
config_options, #deliver, #initialize
Constructor Details
This class inherits a constructor from Courrier::Email::Providers::Base
Instance Method Details
#body ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/courrier/email/providers/brevo.rb', line 9 def body { "sender" => email_address(@options.from), "to" => email_addresses(@options.to), "cc" => email_addresses(@options.cc), "bcc" => email_addresses(@options.bcc), "replyTo" => email_address(@options.reply_to), "subject" => @options.subject, "htmlContent" => @options.html, "textContent" => @options.text }.compact end |