View Single Post
  #1 (permalink)  
Old 03-03-2009, 18:27
unknown888 unknown888 is offline
Member
 
Join Date: Mar 2008
Posts: 56
Default hostname was not match with the server certificate

Hi, I am setting up a rails application and when I deliver an email, i get this

OpenSSL::SSL::SSLError in UsersController#forgot_password

hostname was not match with the server certificate

here is my setting

ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.delivery_method = :smtp

ActionMailer::Base.smtp_settings = {
:address => "localhost",
:port => 25,
:domain => "domain.com",
:user_name => "user@domain.com",
:password => "pass",
:authentication => :login
}

by not using any of the settings, only using sendmail, i am able to receive emails but its "From: " is not having proper domain.com ( it has the server name i have set in cpanel). Any help is much appreciated.
__________________
for sale
Reply With Quote