Skip to content

Commit

Permalink
Parse MAIL_ENABLE_STARTTLS_AUTO into a boolean
Browse files Browse the repository at this point in the history
```
Unrecognized :enable_starttls_auto value "true"; expected true, false, or nil
```
  • Loading branch information
pascalw committed Oct 30, 2024
1 parent 735584b commit 81a369d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
user_name: ENV["MAIL_USERNAME"],
password: ENV["MAIL_PASSWORD"],
authentication: ENV["MAIL_AUTHENTICATION"] || "plain",
enable_starttls_auto: ENV["MAIL_ENABLE_STARTTLS_AUTO"] || true,
enable_starttls_auto: ENV["MAIL_ENABLE_STARTTLS_AUTO"].to_s.downcase == "true" || true,
}

config.action_mailer.default_url_options = { host: "kudo-o-matic-staging.dokku.kabisa.io" }
Expand Down

0 comments on commit 81a369d

Please sign in to comment.