Class: Courrier::Email::Providers::Lettermint
- Defined in:
- lib/courrier/email/providers/lettermint.rb
Constant Summary collapse
- ENDPOINT_URL =
"https://api.lettermint.co/v1/send"
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Courrier::Email::Providers::Base
Class Method Details
.config_options ⇒ Object
7 |
# File 'lib/courrier/email/providers/lettermint.rb', line 7 def self. = %w[route] |
Instance Method Details
#body ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/courrier/email/providers/lettermint.rb', line 11 def body { "route" => @provider_options.route, "from" => @options.from, "to" => @options.to.to_s.split(",").map(&:strip), "cc" => @options.cc&.split(",")&.map(&:strip), "bcc" => @options.bcc&.split(",")&.map(&:strip), "reply_to" => @options.reply_to&.split(",")&.map(&:strip), "subject" => @options.subject, "html" => @options.html, "text" => @options.text }.compact end |