Browse Source

Actually fix mail

Maarten van den Berg 7 years ago
parent
commit
dfc3605ff9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      config/environments/production.rb

+ 7 - 1
config/environments/production.rb

@@ -85,7 +85,13 @@ Rails.application.configure do
85 85
   config.active_record.dump_schema_after_migration = false
86 86
 
87 87
   config.action_mailer.delivery_method = :smtp
88
-  config.action_mailer.mailgun_settings = {
88
+  config.action_mailer.smtp_settings = {
89
+    address: 'localhost',
90
+    port: 25,
91
+    openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE,
89 92
     domain: 'mail.maartenberg.nl'
90 93
   }
94
+  config.action_mailer.default_options = {
95
+    from: 'Aardbei <aardbei@maartenberg.nl>'
96
+  }
91 97
 end