Class: Courrier::Email::Providers::Postmark
- Inherits:
-
Base
- Object
- Base
- Courrier::Email::Providers::Postmark
show all
- Defined in:
- lib/courrier/email/providers/postmark.rb
Constant Summary
collapse
- ENDPOINT_URL =
"https://api.postmarkapp.com/email"
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#deliver, #initialize
Class Method Details
.config_options ⇒ Object
7
|
# File 'lib/courrier/email/providers/postmark.rb', line 7
def self.config_options = %w[message_stream]
|
Instance Method Details
#body ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/courrier/email/providers/postmark.rb', line 11
def body
{
"From" => @options.from,
"To" => @options.to,
"ReplyTo" => @options.reply_to,
"Subject" => @options.subject,
"TextBody" => @options.text,
"HtmlBody" => @options.html,
"MessageStream" => @provider_options.message_stream || "outbound"
}.compact
end
|