From 907b5e9576570e871d120988b406b1b6d83a79ff Mon Sep 17 00:00:00 2001 From: Milan Date: Tue, 21 Mar 2023 21:48:05 +0100 Subject: [PATCH] Configure event notification sender email address This commit adds the ability to configure the email address used as sender, CC, and reply-to in event notification emails via the configuration entry." --- website/agenda/config/config.cgi.off | 1 + website/agenda/planung/notify-events.cgi | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/website/agenda/config/config.cgi.off b/website/agenda/config/config.cgi.off index c8074ca..4fe18d4 100755 --- a/website/agenda/config/config.cgi.off +++ b/website/agenda/config/config.cgi.off @@ -72,6 +72,7 @@ domain ${DOMAIN} # multi language support admin_pot_dir ${BASE_DIR}/agenda/planung/pot/ email info@${DOMAIN} + event_sender_email programm@${DOMAIN} theme default diff --git a/website/agenda/planung/notify-events.cgi b/website/agenda/planung/notify-events.cgi index 5741281..ff6366a 100755 --- a/website/agenda/planung/notify-events.cgi +++ b/website/agenda/planung/notify-events.cgi @@ -202,12 +202,12 @@ sub getMail { $event->{noRecipient} = 1; return; } - + my $sender = $config->{location}->{event_sender_email}; my $mail = { - 'From' => 'programm@radiopiloten.de', + 'From' => $sender, 'To' => join( ', ', @$userMails ), - 'Cc' => 'programm@radiopiloten.de', - 'Reply-To' => 'programm@radiopiloten.de', + 'Cc' => $sender, + 'Reply-To' => $sender, 'Subject' => "$event->{start} - $event->{full_title}", 'Data' => "Hallo " . join( ' und ', @$userNames ) . ",\n\n" };