From aec7af87d79c25c5eabdda5efe4cce54f9131f06 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 16 Feb 2022 22:48:26 +0000 Subject: [PATCH] Disable peer host name validation when sending email --- config/initializers/action_mailer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/action_mailer.rb b/config/initializers/action_mailer.rb index e6ec032aa..5cb4ce04e 100644 --- a/config/initializers/action_mailer.rb +++ b/config/initializers/action_mailer.rb @@ -9,7 +9,8 @@ ActionMailer::Base.smtp_settings = { :enable_starttls_auto => Settings.smtp_enable_starttls_auto, :authentication => Settings.smtp_authentication, :user_name => Settings.smtp_user_name, - :password => Settings.smtp_password + :password => Settings.smtp_password, + :openssl_verify_mode => OpenSSL::SSL::VERIFY_NONE } # Set the host and protocol for all ActionMailer URLs -- 2.39.5