Forum: Ruby on Rails gmail and smtp

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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
This topic is locked and can not be replied to.