redmine : An error occurred while sending mail (hostname was not match with the server certificate)

Posted by gjergj.sheldija on February 17, 2013

quick fix for a silly error i was having today with redmine not sending email anymore. open config/environment.rb and add the following lines

ActionMailer::Base::raise_delivery_errors = true
ActionMailer::Base::smtp_settings[:enable_starttls_auto] = false 

it should solve the problem