Class: Courrier::Email::Providers::Mailgun
- Inherits:
-
Base
- Object
- Base
- Courrier::Email::Providers::Mailgun
show all
- Defined in:
- lib/courrier/email/providers/mailgun.rb
Constant Summary
collapse
- ENDPOINT_URL =
"https://api.mailgun.net/v3/%{domain}/messages"
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/mailgun.rb', line 7
def self.config_options = %w[domain]
|
Instance Method Details
#body ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/courrier/email/providers/mailgun.rb', line 11
def body
{
"from" => @options.from,
"to" => @options.to,
"h:Reply-To" => @options.reply_to,
"subject" => @options.subject,
"text" => @options.text,
"html" => @options.html
}.compact
end
|