]> git.openstreetmap.org Git - rails.git/commitdiff
Disable peer host name validation when sending email
authorTom Hughes <tom@compton.nu>
Wed, 16 Feb 2022 22:48:26 +0000 (22:48 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 16 Feb 2022 22:48:26 +0000 (22:48 +0000)
config/initializers/action_mailer.rb

index e6ec032aaa8bdd8103c08477c0cf12e8fdd7f6de..5cb4ce04e1fb60e43eb4013d02871312f341e590 100644 (file)
@@ -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,
   :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
 }
 
 # Set the host and protocol for all ActionMailer URLs