From cfd0d735ac3196568e9b06ee47a217bf9e638a25 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Wed, 14 Aug 2024 22:43:16 +0200 Subject: [PATCH] Set FROM field on emails --- src/membership/emails.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/membership/emails.py b/src/membership/emails.py index 6ae20d8..b7e84c5 100644 --- a/src/membership/emails.py +++ b/src/membership/emails.py @@ -101,6 +101,7 @@ class InviteEmail(BaseEmail): def __init__(self, membership: Membership, request: HttpRequest, *args, **kwargs) -> None: self.membership = membership kwargs["user"] = membership.user + kwargs["from_email"] = "kasserer@data.coop" super().__init__(request, *args, **kwargs) def get_context_data(self) -> dict: @@ -118,6 +119,7 @@ class OrderEmail(BaseEmail): def __init__(self, order: Order, request: HttpRequest, *args, **kwargs) -> None: self.order = order kwargs["user"] = order.member + kwargs["from_email"] = "kasserer@data.coop" super().__init__(request, *args, **kwargs) def get_context_data(self) -> dict: