Skip to content
Snippets Groups Projects

Add documentation to membership emails

Merged Ghost User requested to merge tc/add-docs-member-emails into master
+ 6
0
@@ -15,6 +15,7 @@ def send_membership_announcement(dry_run=False):
"""
Sends an email to all members with a never ending membership
excluding honorary members
:param dry_run: does not really send emails if True
"""
members = (Member.current_members
@@ -54,6 +55,7 @@ def send_membership_announcement(dry_run=False):
def send_information_request(dry_run=False):
"""
Sends an email to all members to have them check their personal information
:param dry_run: does not really send emails if True
"""
members = Member.current_members.all()
@@ -92,6 +94,7 @@ def send_expiration_announcement(dry_run=False):
"""
Sends an email to all members whose membership will end in the next 31 days
to warn them about this
:param dry_run: does not really send emails if True
"""
expiry_date = datetime.now() + timedelta(days=31)
@@ -141,6 +144,7 @@ def send_expiration_announcement(dry_run=False):
def send_welcome_message(user, password, language):
"""
Sends an email to a new mail welcoming them
:param user: the new user
:param password: randomly generated password
:param language: selected language during registration
@@ -162,6 +166,7 @@ def send_email_change_confirmation_messages(change_request):
"""
Sends emails to the old and new email address of a member to
confirm the email change
:param change_request the email change request entered by the user
"""
member = change_request.member
@@ -206,6 +211,7 @@ def send_email_change_confirmation_messages(change_request):
def send_email_change_completion_message(change_request):
"""
Sends email to the member to confirm the email change
:param change_request the email change request entered by the user
"""
change_request.member.email_user(
Loading