Re: It does not send the inquiries

22 views
Skip to first unread message
Message has been deleted

mike2r

unread,
Jun 2, 2014, 12:56:07 PM6/2/14
to rubyonra...@googlegroups.com


On Monday, June 2, 2014 10:10:10 AM UTC-4, Antonio Arcos wrote:
Hello
I have a problem with the inquiries in my web page, I am using refineryCMS and I have configured for sending emails at my mail account. But it does not work and the log returns this error : "503 STARTTLS command used when not advertised".
If you need any file only ask me.
I hope your answers soon.


Unfortunately, this could be a number of things.  We need to see how you have your mail server set up in Rails.  You would have set it up in either the application.rb or production.rb file.  You can XXX out any specific server names, user names, and passwords, just need to see the configuration.

mike2r

unread,
Jun 4, 2014, 11:45:17 AM6/4/14
to rubyonra...@googlegroups.com
I got a private message with a copy of the production.rb file.  Sorry I'm delayed in responding to this.  The issue is in the following block:

ActionMailer::Base.smtp_settings={ }

These settings need to be defined for the smtp server.  It's possible you have them defined somewhere else (such as the application.rb file) in which case I would need to see the definition.  The error you're getting usually results from attempting to authenticate the mail server over an SSL connection.  It could be that your server doesn't support the AUTH method, or that it only supports a certain type of authentication which needs to be defined in the smtp settings.   For example, for Gmail accounts, it looks something like the following:

config.action_mailer.smtp.settings = {
    :address => "smtp.gmail.com",
    :port => 587,
    :domain => "mydomain.com",
    :user_name => "myusername"
    :password = > "mypassword"
    :authentication => :plain,
    :enable_starttls_auto => true
}

The error you are getting can come from an incorrect value for either of the last two parameters, authentication or startlls_auto.  It's also possible your mail server just doesn't support a secure connection, but that's where I would start looking.


 
Reply all
Reply to author
Forward
0 new messages