This commit is contained in:
		| @@ -79,7 +79,7 @@ if config_env() == :prod do | |||||||
|     password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"), |     password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"), | ||||||
|     ssl: System.get_env("SMTP_SSL") == "true", |     ssl: System.get_env("SMTP_SSL") == "true", | ||||||
|     email_from: System.get_env("EMAIL_FROM") || "no-reply@#{System.get_env("HOST")}", |     email_from: System.get_env("EMAIL_FROM") || "no-reply@#{System.get_env("HOST")}", | ||||||
|     email_name: System.get_env("EMAIL_NAME") || "Memex" |     email_name: System.get_env("EMAIL_NAME") || "memEx" | ||||||
|  |  | ||||||
|   # ## Using releases |   # ## Using releases | ||||||
|   # |   # | ||||||
|   | |||||||
| @@ -19,8 +19,8 @@ defmodule Memex.Email do | |||||||
|  |  | ||||||
|   @spec base_email(User.t(), String.t()) :: t() |   @spec base_email(User.t(), String.t()) :: t() | ||||||
|   defp base_email(%User{email: email}, subject) do |   defp base_email(%User{email: email}, subject) do | ||||||
|     from = Application.get_env(:Memex, Memex.Mailer)[:email_from] || "noreply@localhost" |     from = Application.get_env(:memex, Memex.Mailer)[:email_from] || "noreply@localhost" | ||||||
|     name = Application.get_env(:Memex, Memex.Mailer)[:email_name] |     name = Application.get_env(:memex, Memex.Mailer)[:email_name] | ||||||
|     new() |> to(email) |> from({name, from}) |> subject(subject) |     new() |> to(email) |> from({name, from}) |> subject(subject) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user