Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
4cec183f
Verified
Commit
4cec183f
authored
Jun 07, 2017
by
Sébastiaan Versteeg
Browse files
Fix message and arguments
parent
0ac82500
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/members/emails.py
View file @
4cec183f
...
...
@@ -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'
,
{
'me
mber
'
:
member
})
{
'
na
me'
:
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
()
...
...
website/members/templates/members/email/expiration_announcement.txt
View file @
4cec183f
{% 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 %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment