[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 ?


On Dec 12, 3:52 pm, Erwin 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"
MyMailer::deliver_test_email        is delivering fine this test email
I used these smtp_settings, in  a specific initializer file  :
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
postedDec 12, '11 at 2:53p
activeDec 12, '11 at 3:24p

1 user in discussion

Erwin: 2 posts



site design / logo © 2021 Grokbase