Class: Courrier::Email::Providers::Lettermint
- Defined in:
- lib/courrier/email/providers/lettermint.rb
Constant Summary collapse
- ENDPOINT_URL =
"https://api.lettermint.co/v1/send"
Instance Method Summary collapse
Methods inherited from Base
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 21 |
# File 'lib/courrier/email/providers/lettermint.rb', line 9 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 |