Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Use mailer_from in weekly report

Uku Tahtd808feb21df0
diff --git a/lib/plausible_web/email.ex b/lib/plausible_web/email.ex
index 41b5fbfafc..29959255a8 100644
--- a/lib/plausible_web/email.ex
+++ b/lib/plausible_web/email.ex
@@ -103,7 +103,7 @@ defmodule PlausibleWeb.Email do
def weekly_report(email, site, assigns) do
base_email()
|> to(email)
- |> from("Plausible Analytics <[email protected]>")
+ |> from(mailer_email_from())
|> tag("weekly-report")
|> subject("#{assigns[:name]} report for #{site.domain}")
|> render("weekly_report.html", Keyword.put(assigns, :site, site))