 # SMTP configuration
 config :classlab, Classlab.Mailer,
   adapter: Bamboo.SMTPAdapter,
-  server: get_env("CLASSLAB_SMTP_SERVER") || raise("Please set env variable CLASSLAB_SMTP_SERVER"),
+  server: get_env("CLASSLAB_SMTP_SERVER") || Logger.info("Please set env variable CLASSLAB_SMTP_SERVER"),
   port: get_env("CLASSLAB_SMTP_PORT") || 587,
-  username: get_env("CLASSLAB_SMTP_USERNAME") || raise("Please set env variable CLASSLAB_SMTP_USERNAME"),
-  password: get_env("CLASSLAB_SMTP_PASSWORD") || raise("Please set env variable CLASSLAB_SMTP_PASSWORD"),
+  username: get_env("CLASSLAB_SMTP_USERNAME") || Logger.info("Please set env variable CLASSLAB_SMTP_USERNAME"),
+  password: get_env("CLASSLAB_SMTP_PASSWORD") || Logger.info("Please set env variable CLASSLAB_SMTP_PASSWORD"),
   tls: :if_available, # can be `:always` or `:never`
   ssl: get_env("CLASSLAB_SMTP_SSL") || false, # can be `true`
   retries: 1

use Mix.Config
import System, only: [get_env: 1]

# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need

  url: [host: get_env("CLASSLAB_URL_HOST") || "example.com",
        port: get_env("CLASSLAB_URL_PORT") || get_env("PORT") || 80],
  cache_static_manifest: "priv/static/manifest.json",
  secret_key_base: get_env("SECRET_KEY_BASE") || Logger.info("Please set env variable SECRET_KEY_BASE"),
  check_origin: false,
  server: true

