From 69f846fb075593f0d2e726790e334aa458d1e0f6 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 9 Nov 2022 11:12:53 +0200 Subject: [PATCH] do not use default layout in some emails --- lib/plausible_web/email.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plausible_web/email.ex b/lib/plausible_web/email.ex index 0c9ac82fb..22fdc6695 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}")