Class: Courrier::Email::Providers::Smtp2go
- Defined in:
- lib/courrier/email/providers/smtp2go.rb
Constant Summary collapse
- ENDPOINT_URL =
"https://api.smtp2go.com/v3/email/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 |
# File 'lib/courrier/email/providers/smtp2go.rb', line 9 def body { "sender" => @options.from, "to" => @options.to.to_s.split(",").map(&:strip), "cc" => @options.cc&.split(",")&.map(&:strip), "bcc" => @options.bcc&.split(",")&.map(&:strip), "subject" => @options.subject, "html_body" => @options.html, "text_body" => @options.text }.compact end |