lib/mailkick/service/mailgun.rb in mailkick-0.2.1 vs lib/mailkick/service/mailgun.rb in mailkick-0.3.0

- old
+ new

@@ -4,10 +4,10 @@ class Service class Mailgun < Mailkick::Service def initialize(options = {}) require "mailgun" mailgun_client = ::Mailgun::Client.new(options[:api_key] || ENV["MAILGUN_API_KEY"]) - domain = options[:domain] || ActionMailer::Base.default_url_options[:host] + domain = options[:domain] || ActionMailer::Base.smtp_settings[:domain] @mailgun_events = ::Mailgun::Events.new(mailgun_client, domain) end def opt_outs unsubscribes + spam_reports + bounces