# Error with ActionMailer

**URL:** <https://www.ruby-forum.com/t/error-with-actionmailer/157828>\
**Category:** Rails\
**Created:** [January 15, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/error-with-actionmailer/157828 "2009-01-15T18:17:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr\_gavin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Post date:** [January 15, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/error-with-actionmailer/157828/1 "2009-01-15T18:17:24Z")

</div>

I wrote my app in Rails 2.1 - emails seemed to work fine.  
My host are running Rails 2.2.2 though and now I get this error  
message when sending emails:

OpenSSL::SSL::SSLError (hostname was not match with the server  
certificate):

Can anyone advise?

Thanks

🙂

---

<div class="post-metadata">

**Author:** ![dr\_gavin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Post date:** [January 16, 2009, 11:30am UTC](https://www.ruby-forum.com/t/error-with-actionmailer/157828/2 "2009-01-16T11:30:04Z")

</div>

These are my configuration settings in base.rb

```
@@smtp_settings = {
  :address => "localhost",
  :port => 25,
  :domain => 'thinkersplayground.com',
  :user_name => 'removed_email_address@domain.invalid',
  :password => 'mypassword',
  :authentication => :login
}
cattr_accessor :smtp_settings

```

Are these incorrect?
