ActionMailer Funkiness

I spent today getting a mailer setup locally. Everything was well so
I commited my changes and went about making sure it was working on
the production box. Well, it wasn’t. Here’s the setup. I have a
method in my Statistic model that send the mail through a method in a
mailer. I am using script/runner to send this mail periodically.

When I use this:


script/runner -e development “Statistic.send_acp_announce”

I get no errors, but no mail is ever sent. When I use this:


script/runner -e production “Statistic.send_acp_announce”

I get this:


/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/runner.rb:27: /
usr/lib/ruby/1.8/net/protocol.rb:83:in initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/ruby/1.8/net/protocol.rb:83:inconnect’
from /usr/lib/ruby/1.8/net/protocol.rb:82:in timeout' from /usr/lib/ruby/1.8/timeout.rb:62:intimeout’
from /usr/lib/ruby/1.8/net/protocol.rb:82:in connect' from /usr/lib/ruby/1.8/net/protocol.rb:64:ininitialize’
from /usr/lib/ruby/1.8/net/smtp.rb:393:in do_start' from /usr/lib/ruby/1.8/net/smtp.rb:378:instart’
from /usr/lib/ruby/1.8/net/smtp.rb:316:in start' ... 8 levels... from /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/ runner.rb:27 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 18:inrequire’
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:214:in `require’
from script/runner:3

There is no difference in the ActionMailer config between the two
environments. I am thinking that while the development runner throws
no errors, it is really breaking somewhere too. Anyone experienced
this kind of thing before?

Brad D.
bradleyboy productions
[email protected]

Sorry for the static everyone, turned out to be a DNS issue on the
production box.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs