diff --git a/config/initializers/mailer.rb b/config/initializers/mailer.rb index f119a31..e30fc5b 100644 --- a/config/initializers/mailer.rb +++ b/config/initializers/mailer.rb @@ -2,4 +2,10 @@ Rails.application.config.action_mailer.delivery_method = :ses end +# TODO Think of a better way to set this up. Either have a local instance of ses, or some other mail service +# Avoids having to configure SES stuff in development +if Rails.env.development? + Rails.application.config.action_mailer.delivery_method = :test +end + Rails.application.config.action_mailer.default_url_options = { host: ENV.fetch("BASE_URL") }