Merge pull request #9462 from zeylos/brevo_env_smtp_address
changed(brevo): use env vars for smtp relay address and port.
This commit is contained in:
commit
0e6301a08a
2 changed files with 6 additions and 2 deletions
|
@ -122,6 +122,10 @@ MATOMO_IFRAME_URL="https://matomo.example.org/index.php?module=CoreAdminHome&act
|
||||||
# DOLIST_NO_REPLY_EMAIL=""
|
# DOLIST_NO_REPLY_EMAIL=""
|
||||||
# DOLIST_API_KEY=""
|
# DOLIST_API_KEY=""
|
||||||
|
|
||||||
|
# SMTP Provider: SIB (Brevo)
|
||||||
|
# SENDINBLUE_SMTP_ADDRESS=""
|
||||||
|
# SENDINBLUE_SMTP_PORT=""
|
||||||
|
|
||||||
# Ratio of emails sent using SendInBlue
|
# Ratio of emails sent using SendInBlue
|
||||||
# When present, N % of emails will be sent using SendInBlue
|
# When present, N % of emails will be sent using SendInBlue
|
||||||
# (and the others using the default SMTP provider)
|
# (and the others using the default SMTP provider)
|
||||||
|
|
|
@ -10,9 +10,9 @@ if ENV.key?('SENDINBLUE_BALANCING_VALUE')
|
||||||
ActionMailer::Base.sendinblue_settings = {
|
ActionMailer::Base.sendinblue_settings = {
|
||||||
user_name: Rails.application.secrets.sendinblue[:username],
|
user_name: Rails.application.secrets.sendinblue[:username],
|
||||||
password: Rails.application.secrets.sendinblue[:smtp_key],
|
password: Rails.application.secrets.sendinblue[:smtp_key],
|
||||||
address: 'smtp-relay.brevo.com',
|
address: ENV.fetch("SENDINBLUE_SMTP_ADDRESS", "smtp-relay.brevo.com"),
|
||||||
domain: 'smtp-relay.brevo.com',
|
domain: 'smtp-relay.brevo.com',
|
||||||
port: '587',
|
port: ENV.fetch("SENDINBLUE_SMTP_PORT", "587"),
|
||||||
authentication: :cram_md5
|
authentication: :cram_md5
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue