Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid delivery method #105

Closed
fadynaffa3 opened this issue Jun 11, 2017 · 9 comments
Closed

Invalid delivery method #105

fadynaffa3 opened this issue Jun 11, 2017 · 9 comments

Comments

@fadynaffa3
Copy link

I am getting this error after commenting out config.action_mailer.mailgun_settings as it was raising undefined method mailgun_settings=' for ActionMailer::Base:Class`

Configuration:

  • Rails 4.2.8
  • Ruby 2.4.1
  • mailgun-ruby 1.1.6
  • Error Message is Invalid delivery method mailgin
@pirogoeth
Copy link
Contributor

@fadynaffa3 Could you try with Rails >= 5.0.0.1? I've got a sample application using Railgun that may help you set things up.

@fadynaffa3
Copy link
Author

@pirogoeth already tried with rails 5 before and worked correctly but the issue is on rails 4.2.8 and the documentation didn't mention the supported rails version and it's confusing.
I can't update my project to rails 5 in one day to test mailgun usage with action_mailer

@pirogoeth
Copy link
Contributor

@fadynaffa3 I will see what I need to do to make it work with Rails 4.2.8.

@fadynaffa3
Copy link
Author

Thanks :)

@ivko999
Copy link

ivko999 commented Jul 11, 2017

Any luck with this?

@fadynaffa3
Copy link
Author

@ivko999 try this:
ActionMailer::Base.add_delivery_method(:mailgun, Mailgun, default_options={})

@Benjamin-Dobell
Copy link

This is Rails bug, same underlying cause as #104. Fixed by pending Rails PR rails/rails#35419

@Benjamin-Dobell
Copy link

Should probably note there is an issue with this Gem as well, as it's causing ActionMailer::Base to autoload earlier than it ought to. Fixed in PR #162.

@Retttro
Copy link
Contributor

Retttro commented Apr 5, 2021

Version 1.2.4 with the fix was published to rubygems. Closing.
https://github.com/mailgun/mailgun-ruby/releases/tag/v1.2.4

@Retttro Retttro closed this as completed Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants