OpenSSL::SSL::SSLError (hostname "smtp.gmail.com" does not match the server certificate)

30 views
Skip to first unread message

Arvind Vyas

unread,
Jul 17, 2015, 3:30:39 AM7/17/15
to rubyonra...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages