[SOLVED] but don't know why ... I changed :address => "mail.mydomain.com" to :address => "localhost" and it's now correctly sending the email... but why the :address => "mail.mydomain.com" was running fine in the rails console ?? and not when the app is running ? any clue ?
erwin On Dec 12, 3:52 pm, Erwin <yves_duf...@mac.com> wrote: > I don't know how to get more info about this issue on my remote server > ( Linux/Debian6 - Qmail) > > localhost testing is fine > , so my class UserMailer < ActionMailer::Base is rendering correctly > the email ( checked in the development log) > > now, testing the remote SMTP server , via the production console, > using : > ActionMailer::Base.smtp_settings = {:address => > "mail.mydomain.com",:port => 587,:domain => > "mydomain.com",:authentication => :login, :user_name => > "mys...@mydomain.com",:password => > "xxxxxxxxxxxx",:enable_starttls_auto => false} > > class MyMailer < ActionMailer::Base > def test_email > @recipients = "mys...@me.com" > @from = "nore...@mydomain.com" > @subject = "this is a subject" > @body = "this is the body" > end > end > > >> MyMailer::deliver_test_email is delivering fine this test email > > I used these smtp_settings, in a specific initializer file : > config/initializers/mail.rb > but then I get the Errno::ECONNREFUSED in production log, right after > the email rendering ... > > how can I check what's wrong ? the production log doesn't give me > enough info ... > > thanks for your feedback .. I'm lost in translation ... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.