Verified Commit 4cec183f authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix message and arguments

parent 0ac82500
......@@ -81,16 +81,18 @@ def send_expiration_announcement(dry_run=False):
with mail.get_connection() as connection:
for member in members:
print("Send email to {} ({})".format(member.get_full_name(),
member.user.email))
with translation.override(member.language):
email_body = loader.render_to_string(
'members/email/expiration_announcement.txt',
{'member': member})
{'name': member.get_full_name()})
mail.EmailMessage(
_('Membership expiration announcement'),
email_body,
settings.WEBSITE_FROM_ADDRESS,
[member.user.email],
bcc=settings.BOARD_NOTIFICATION_ADDRESS,
bcc=[settings.BOARD_NOTIFICATION_ADDRESS],
connection=connection
).send()
......
{% load i18n %}{% blocktrans %}Dear {{ member.full_name }},
{% load i18n %}{% blocktrans %}Dear {{ name }},
The past year you've been a member or benificiary of Study Association Thalia.
You've not given us permission to prolong it automatically, thus your membership will
......@@ -10,13 +10,10 @@ our exam collection and a symposium. Come by the board room and we'll help you
to extend your membership.
Are you not able to come by? Then just send us an email: info@thalia.nu.
Ook op een later moment kun je je nog inschrijven, neem dan even contact op met
het bestuur om te bespreken wat een handig moment is. Mail hiervoor naar
info@thalia.nu.
With kind regards,
The board of Study Association Thalia
P.S. It's possible that you've already renewed your membership and that it hasn't been processed yet.
If that's the case then you don't need to do anything.{% endblocktrans %}g
If that's the case then you don't need to do anything.{% endblocktrans %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment