jorgemanrubia / mailgun_rails

Rails Action Mailer adapter for Mailgun
MIT License
210 stars 70 forks source link

verify_ssl option #53

Closed nicolasmlv closed 8 years ago

nicolasmlv commented 9 years ago

When using mailgun from dev environment, i got this exception :

    RestClient::SSLCertificateNotVerified (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):

In order to bypass this, in dev environment, we should make use of 'verify_ssl' params in RestClient

With this pull request, we can add a verify_ssl option to the settings :

    #config/environments/development.rb
    Myapp::Application.configure do
      #...
      config.action_mailer.mailgun_settings = {
        api_key: ENV['MAILGUN_API_KEY'],
        domain: ENV['MAILGUN_DOMAIN'],
        verify_ssl: false
      }
      #...
    end
jorgemanrubia commented 9 years ago

Hi @nicolasmlv,

Thank you so much for the PR. There are some conflicts preventing the merge. Could you look at those? I am looking forward to merge this.

Thanks

zzet commented 8 years ago

@nicolasmlv Thank you for contributing!