From 43d5dcbd527f24c0bb1c0b0407174d75db11ba4f Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Wed, 14 Aug 2024 20:44:11 +0000 Subject: [PATCH] Set FROM field on emails (#55) Fixes #54 Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/55 Co-authored-by: Benjamin Bach Co-committed-by: Benjamin Bach --- 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: