Forum: Ruby on Rails ActionMailer Funkiness

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brad D. (Guest)
on 2006-01-17 02:09
(Received via mailing list)
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:in `connect'
         from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
         from /usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
         from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
         from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
         from /usr/lib/ruby/1.8/net/smtp.rb:393:in `do_start'
         from /usr/lib/ruby/1.8/net/smtp.rb:378:in `start'
         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/
         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
         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
Brad D. (Guest)
on 2006-01-17 03:16
Sorry for the static everyone, turned out to be a DNS issue on the
production box.
This topic is locked and can not be replied to.