Forum: Ruby on Rails gmail and smtp

Cf0e3d6e1a5ff20ab8f43d7173bf6c23?d=identicon&s=25 Craig Westmoreland (westy_on_rails)
on 2010-01-01 19:18
(Received via mailing list)
hello everyone...

I'm trying to set my email up in production.

During test and development, I just used sendmail, which was stored in
my development.rb folder at /config/environments

Everywhere online suggests that in production, the mailer stuff needs
to be in /config/ and then into the environment.rb file

So - I have this so far,

  ActionMailer::Base.smtp_settings = {
   :address => "",
   :port => 465,
   :domain => "",
    :authentication => :login,
     :user_name => "my_user_name",
     :password => "my_pass_word",

Unfortunately, this results in a server error (500)

Looking in the log file at production.log, I have this:
OpenSSL::SSL::SSLError (hostname was not match with the server

As i'm new to this, and this is my 1st deployment - I'm not 100% sure
what this means.

Any help appreciated



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
To unsubscribe from this group, send email to
For more options, visit this group at
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.