def make_signature_reminder_email(member): ''' a mail body to remind membership applicants to send the form with their signature ''' return ( get_template_text('signature_reminder_subject', member.locale), get_template_text('signature_reminder_body', member.locale).format( salutation=get_salutation(member), submission_date=format_date( member.date_of_submission, member.locale), footer=get_email_footer(member.locale)))
def make_payment_reminder_email(member): ''' a mail body to remind membership applicants to send the payment for their shares ''' return ( get_template_text('payment_reminder_subject', member.locale), get_template_text('payment_reminder_body', member.locale).format( salutation=get_salutation(member), submission_date=format_date( member.date_of_submission, member.locale), shares_value=int(member.num_shares) * 50, shares_count=member.num_shares, transfer_purpose=u'C3Shares ' + member.email_confirm_code, footer=get_email_footer(member.locale)))