Forum: Ruby on Rails gmail and smtp

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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 => "smtp.gmail.com",
   :port => 465,
   :domain => "domainname.com",
    :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
certificate):

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

Any help appreciated

Thanks...

--

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.
This topic is locked and can not be replied to.