Comments (7)
Can you provide more details to the issue?
from mailgun-ruby.
Tried this in my Gemfile
gem 'mailgun-ruby', '~>1.0.5', require: 'mailgun'
It didn't installed, tried following
gem 'mailgun-ruby', '~>1.0.2', require: 'mailgun'
It installed.
Mailgun.configure do |config|
config.api_key = 'your-secret-key'
end
there are two api keys(private/public) in mailgun account, i guess above refers to the private key.
After this I can see ActionMailer is sending emails in the server logs but niether they are delivered nor I can see them in mailgun account logs.
Does it work with ActionMailer for rails or we need to use Mailgun::Client.new("your-api-key")
every time we send emails ?
from mailgun-ruby.
For gem 'mailgun-ruby', '~>1.0.5', require: 'mailgun'
part of your troubles, that was a mistake. There actually isn't a version 1.0.5
(see #51).
I think the term "secret-key" implies your private key, but if that isn't clear, maybe we can modify the readme.
After adding this gem, you'll actually be using the gem to send messages, not ActionMailer
. With mailgun_rails
gem, you set mailgun as the delivery handler for ActionMailer
. mailgun-ruby
is just to help you access Mailgun with plain ol' ruby and isn't intended to be an Rails plugin (but totally can be).
To use it in Rails a good setup would be to have a config file with your keys and an initializer to access those. Like this gist, that way you're not putting your secrets in your code.
from mailgun-ruby.
@atinder Are you still having this issue?
from mailgun-ruby.
yes, actually I was looking for more of Rails friendly gem. mailgun_rails seems to be solving my problem.
from mailgun-ruby.
Alright, glad you found something that works for you! I'll try to make this library more Rails friendly. Thanks for the comments!
from mailgun-ruby.
Going to use #14 in place of this issue.
from mailgun-ruby.
Related Issues (20)
- TypeError: no implicit conversion of nil into String HOT 1
- Use multiple domains with different sending keys HOT 4
- Is there a way to handle different recipient variables with same email HOT 1
- The delete_bounce method requires email addresses to be escaped. HOT 2
- NoMethodError (undefined method 'proxy_url' for Mailgun:Module) HOT 2
- Error api_host after update to 1.2.7 HOT 2
- TypeError (no implicit conversion of nil into String) HOT 5
- Primitive types are serialized twice to JSON HOT 1
- Abandoned dependency: rest-client abandoned in 2019 HOT 7
- mailgun-ruby 1.2.9 not on rubygems HOT 1
- Response object can be nil HOT 2
- Getting error : NameError: uninitialized constant MailgunRetriesCron HOT 2
- delete_if returning true from function when encountering a nil value HOT 3
- Follow up error while processing response of an unauthorized request
- single-verification HOT 1
- Next page HOT 1
- Headers are always downcased when using Railgun HOT 1
- events abstraction issues
- Missing docs for Templates
- Remove `OpenStruct` usage, will warn in Ruby 3.4, raise in Ruby 3.5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailgun-ruby.