Skip to content

Commit 98edb99

Browse files
pandafynemesifier
andauthored
[fix] Fixed the recipient string in email template
Co-authored-by: Federico Capoano <[email protected]>
1 parent fa9b0df commit 98edb99

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

openwisp_utils/admin_theme/email.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def send_email(
3838
site_name=site.name,
3939
site_url=f"{scheme}://{site.domain}",
4040
logo_url=app_settings.OPENWISP_EMAIL_LOGO,
41+
recipients=", ".join(recipients),
4142
)
4243
context.update(extra_context)
4344

openwisp_utils/admin_theme/templates/openwisp_utils/email_template.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
}
7979

8080
.logo {
81-
max-width: 104px;
81+
width: 150px;
82+
height: 86px;
8283
}
8384

8485
.call-to-action {
@@ -91,7 +92,7 @@
9192
font-size: 1.13rem;
9293
width: fit-content;
9394
margin: auto;
94-
padding-top: 0.25rem;
95+
margin-top: 1rem;
9596
color: #101828;
9697
}
9798

@@ -156,7 +157,7 @@
156157
</div>
157158
{% endblock logo %}
158159
{% block email_info %}
159-
<div class="email-info">This email is sent to <u>{{ recipient_email }}</u> from [{{ site_name }}]</div>
160+
<div class="email-info">This email is sent to <u>{{ recipients }}</u> from [{{ site_name }}]</div>
160161
{% endblock email_info %}
161162
<div class="box">
162163
{% block mail_header %}

0 commit comments

Comments
 (0)