On Nov 11, 8:02 pm, RubyonRails_newbie <
craigwest...@googlemail.com>
wrote:
> In environment.rb I have:
> ActionMailer::Base.delivery_method = :sendmail
>
> and at the top of the same file I have:
> ENV['RAILS_ENV'] ||= 'production'
>
> When I try and enter an email address into the form:
> I tget an error back:
>
> SocketError in EmailController#remind
> getaddrinfo: nodename nor servname provided, or not known
That sounds like it's still trying to use smtp (but without a valid
smtp server). Did you restart the app after changing this ? With
sendmail you just need to tell rails where sendmail is (and even then
only if sendmail isn't where rails expects to find it).
Fred