Skip to content

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

do not use default layout in some emails

Robert69f846fb0755
diff --git a/lib/plausible_web/email.ex b/lib/plausible_web/email.ex
index 0c9ac82fb6..22fdc66952 100644
--- a/lib/plausible_web/email.ex
+++ b/lib/plausible_web/email.ex
@@ -63,7 +63,7 @@ defmodule PlausibleWeb.Email do
end
def password_reset_email(email, reset_link) do
- base_email()
+ base_email(%{layout: nil})
|> to(email)
|> tag("password-reset-email")
|> subject("Plausible password reset")
@@ -104,7 +104,7 @@ defmodule PlausibleWeb.Email do
end
def weekly_report(email, site, assigns) do
- base_email()
+ base_email(%{layout: nil})
|> to(email)
|> tag("weekly-report")
|> subject("#{assigns[:name]} report for #{site.domain}")