herokuへのデプロイ後にメールの送信テストを行ったのですが、送信できませんでした。
OpenSSL::SSL::SSLError (hostname "smtp.hogehoge.com" does not match the server certificate):
現状、development.rb
とproduction.rb
のメール設定は下記のようになっています。
初心者のためどこを直せば送信できるのか分からず手詰まりです。
ご助言いただけると幸いです。
config.action_mailer.smtp_settings = { port: 465, address: 'smtp.hogehoge.com', domain: 'hogehoge.com', user_name: 'info@hogehoge.com', password: 'シークレット', authentication: 'plain', enable_starttls_auto: true, ssl: true, tls: true }
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/12/02 13:43