hcb icon indicating copy to clipboard operation
hcb copied to clipboard

Un-hardcode some SMTP/Email settings

Open cyteon opened this issue 11 months ago • 0 comments

Recreation of #9958 cause github disassociated my fork from this repo :(

This PR unhardcodes the selection between letter opener or SMTP on dev, by making some env vars.

  • If SMTP__ENABLED is false or not set, it will use letter opener

It also un-harcodes the emails in app/mailers/application_mailer.rb!

  • If SMTP__DOMAIN is not set, it falls back to hcb.hackclub.com for prod, and staging.hcb.hackclub.com for dev
  • If SMTP__USERNAME is not set, it falls back to "hcb"

cyteon avatar Mar 30 '25 08:03 cyteon