Пример #1
0
def bounty_uninterested(to_email, bounty, interest):
    from_email = settings.CONTACT_EMAIL
    html, text = render_bounty_unintersted(to_email, bounty, interest)
    subject = "Funder has removed you from the task: '{}' ? ".format(bounty.title_or_desc)

    if not should_suppress_notification_email(to_email):
        send_mail(from_email, to_email, subject, text, html)
Пример #2
0
def bounty_uninterested(to_email, bounty, interest):
    from_email = settings.CONTACT_EMAIL
    cur_language = translation.get_language()
    try:
        setup_lang(to_email)
        html, text = render_bounty_unintersted(to_email, bounty, interest)
        subject = "Funder has removed you from the task: '{}' ? ".format(bounty.title_or_desc)

        if not should_suppress_notification_email(to_email, 'bounty'):
            send_mail(from_email, to_email, subject, text, html, categories=['transactional', func_name()])
    finally:
        translation.activate(cur_language)