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 <location/event_sender_email> configuration entry."
This commit is contained in:
@@ -72,6 +72,7 @@ domain ${DOMAIN}
|
|||||||
# multi language support
|
# multi language support
|
||||||
admin_pot_dir ${BASE_DIR}/agenda/planung/pot/
|
admin_pot_dir ${BASE_DIR}/agenda/planung/pot/
|
||||||
email info@${DOMAIN}
|
email info@${DOMAIN}
|
||||||
|
event_sender_email programm@${DOMAIN}
|
||||||
theme default
|
theme default
|
||||||
</locations>
|
</locations>
|
||||||
|
|
||||||
|
|||||||
@@ -202,12 +202,12 @@ sub getMail {
|
|||||||
$event->{noRecipient} = 1;
|
$event->{noRecipient} = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
my $sender = $config->{location}->{event_sender_email};
|
||||||
my $mail = {
|
my $mail = {
|
||||||
'From' => 'programm@radiopiloten.de',
|
'From' => $sender,
|
||||||
'To' => join( ', ', @$userMails ),
|
'To' => join( ', ', @$userMails ),
|
||||||
'Cc' => 'programm@radiopiloten.de',
|
'Cc' => $sender,
|
||||||
'Reply-To' => 'programm@radiopiloten.de',
|
'Reply-To' => $sender,
|
||||||
'Subject' => "$event->{start} - $event->{full_title}",
|
'Subject' => "$event->{start} - $event->{full_title}",
|
||||||
'Data' => "Hallo " . join( ' und ', @$userNames ) . ",\n\n"
|
'Data' => "Hallo " . join( ' und ', @$userNames ) . ",\n\n"
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user