config: use alternate delivery methods to configure ActionMailer

Previously `SENDINBLUE_BALANCING` was used only when
`SENDINBLUE_ENABLED` was *disabled* (otherwise only SendInBlue was ever
used).

This commit:

- Ensure that `SENDINBLUE_BALANCING` is used only when SendInBlue is
  *enabled* (which is more intuitive).
- Make it easier to add other delivery methods.
This commit is contained in:
Pierre de La Morinerie 2022-01-18 16:56:30 +01:00
parent d3603cf3c5
commit 04cfc8ed9d
4 changed files with 43 additions and 24 deletions

4
app/lib/mailtrap/smtp.rb Normal file
View file

@ -0,0 +1,4 @@
module Mailtrap
class Smtp < ::Mail::SMTP
end
end

View file

@ -0,0 +1,4 @@
module Sendinblue
class Smtp < ::Mail::SMTP
end
end