yzhang / ar_mailer_rails3 Goto Github PK
View Code? Open in Web Editor NEWA two-phase delivery agent for ActionMailer which works for Rails 3.
Home Page: http://github.com/yzhang/ar_mailer_rails3
License: Other
A two-phase delivery agent for ActionMailer which works for Rails 3.
Home Page: http://github.com/yzhang/ar_mailer_rails3
License: Other
migration should be: t.integer :last_send_attempt, default: 0, null: false
Failure condition:
And there will be errors because there is a comparison on line 134 with a nil value
Should probably do something with Rails.env. It looks like during testing, this gem actually tries to send mail but fails with a connection failure unless it's configured.
Maybe also look into ActionMailer::Base.deliveries and see how that's used during testing?
http://edgeguides.rubyonrails.org/action_mailer_basics.html#mailer-testing
I just installed this and did a deliver on a mailer object. This is the error I got with the fresh install. Ideas?
[~/km/sio/trunk]$ ar_sendmail_rails3 --mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1 4564 Tue Oct 05 20:45:53 [email protected]
Unhandled exception undefined method >' for nil:NilClass(NoMethodError): /Users/daniel/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/whiny_nil.rb:48:in
method_mis
sing'
/Users/daniel/.rvm/gems/ruby-1.9.2-p0/gems/ar_mailer_rails3-2.1.10/lib/ar_mailer_rails3/ar_sendmail.rb:134:in b lock in mailq' /Users/daniel/.rvm/gems/ruby-1.9.2-p0/gems/ar_mailer_rails3-2.1.10/lib/ar_mailer_rails3/ar_sendmail.rb:118:in
e
ach'
/Users/daniel/.rvm/gems/ruby-1.9.2-p0/gems/ar_mailer_rails3-2.1.10/lib/ar_mailer_rails3/ar_sendmail.rb:118:in m ailq' /Users/daniel/.rvm/gems/ruby-1.9.2-p0/gems/ar_mailer_rails3-2.1.10/lib/ar_mailer_rails3/ar_sendmail.rb:279:in
r
un'
/Users/daniel/.rvm/gems/ruby-1.9.2-p0/gems/ar_mailer_rails3-2.1.10/bin/ar_sendmail_rails3:5:in <top (required)> ' /Users/daniel/.rvm/gems/ruby-1.9.2-p0/bin/ar_sendmail_rails3:19:in
load'
/Users/daniel/.rvm/gems/ruby-1.9.2-p0/bin/ar_sendmail_rails3:19:in `
I guys (sorry for my english i'm french ...),
i've started to use your awesome gem with a newsletter project but when i pass ma project on the production server i encountered a problem to send mail with my local smtp.
Line 374 to 382 in ar_sendmail.rb, when i comment this line, it correct my problem.
In futur version, it possible to change this part or upgrade with a log message to show the problem in log ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.