diff --git a/tasks/download_report.rake b/tasks/download_report.rake index 66b8df3..f6f5c66 100644 --- a/tasks/download_report.rake +++ b/tasks/download_report.rake @@ -12,8 +12,9 @@ task :mail do require 'date' require 'mail' - options = { host: 'mail.folio-test.svc.cluster.local', - address: 'mail.folio-test.svc.cluster.local', + namespace = "folio-#{ENV.fetch('STAGE', nil)}" + options = { host: "mail.#{namespace}.svc.cluster.local", + address: "mail.#{namespace}.svc.cluster.local", port: 587 }