Skip to content

Commit

Permalink
Généralise l'utilisation de la constante EMAIL_CONTACT dans les initi…
Browse files Browse the repository at this point in the history
…alizers
  • Loading branch information
etienneCharignon committed Sep 4, 2023
1 parent e71157e commit cfb9097
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/initializers/geocoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# Calculation options
units: :km, # :km for kilometers or :mi for miles
# distances: :linear # :spherical or :linear
http_headers: { "User-Agent" => "contact@eva.beta.gouv.fr" },
http_headers: { "User-Agent" => Eva::EMAIL_CONTACT },
)
2 changes: 1 addition & 1 deletion config/initializers/mailjet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Mailjet.configure do |config|
config.api_key = ENV['MAILJET_API_KEY']
config.secret_key = ENV['MAILJET_SECRET_KEY']
config.default_from = 'contact@eva.beta.gouv.fr'
config.default_from = Eva::EMAIL_CONTACT
# Mailjet API v3.1 is at the moment limited to Send API.
# We’ve not set the version to it directly since there is no other endpoint in that version.
# We recommend you create a dedicated instance of the wrapper set with it to send your emails.
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/truemail.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Truemail.configure do |config|
config.verifier_email = 'contact@eva.beta.gouv.fr'
config.verifier_email = Eva::EMAIL_CONTACT

config.default_validation_type = :mx
config.not_rfc_mx_lookup_flow = true
Expand Down

0 comments on commit cfb9097

Please sign in to comment.