stages/email: fix issue when sending emails to users with same display as email (#8850)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -481,7 +481,7 @@ class NotificationTransport(SerializerModel):
|
||||
}
|
||||
mail = TemplateEmailMessage(
|
||||
subject=subject_prefix + context["title"],
|
||||
to=[f"{notification.user.name} <{notification.user.email}>"],
|
||||
to=[(notification.user.name, notification.user.email)],
|
||||
language=notification.user.locale(),
|
||||
template_name="email/event_notification.html",
|
||||
template_context=context,
|
||||
|
||||
Reference in New Issue
Block a user