When I deployed my rails app with cent os6 while sending email it is giving 
me 'OpenSSL::SSL::SSLError (hostname "smtp.gmail.com" does not match the 
server certificate) , 

This is my mailer settings 
config.action_mailer.smtp_settings = {
    address: 'smtp.gmail.com',
    port: 587,
    domain: ENV['DOMAIN_NAME'],
    authentication: 'plain',
    enable_starttls_auto: true,
    user_name: ENV['GMAIL_USERNAME'],
    password: ENV['GMAIL_PASSWORD'],
    openssl_verify_mode: 'none'
  }


Let me know if any one can help . Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/24c4f4b3-f669-46b3-9beb-2a72681e21d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to