Exemplo n.º 1
0
def send_digest_email(user_profile, subject, html_content, text_content):
    # type: (UserProfile, Text, Text, Text) -> None
    recipients = [{'email': user_profile.email, 'name': user_profile.full_name}]
    sender = {'email': settings.NOREPLY_EMAIL_ADDRESS, 'name': 'Zulip'}

    # Send now, through Mandrill.
    send_future_email(recipients, html_content, text_content, subject,
                      delay=datetime.timedelta(0), sender=sender,
                      tags=["digest-emails"])
Exemplo n.º 2
0
Arquivo: digest.py Projeto: zag/zulip
def send_digest_email(user_profile, html_content, text_content):
    recipients = [{'email': user_profile.email, 'name': user_profile.full_name}]
    subject = "While you've been gone - Zulip"
    sender = {'email': settings.NOREPLY_EMAIL_ADDRESS, 'name': 'Zulip'}

    # Send now, through Mandrill.
    send_future_email(recipients, html_content, text_content, subject,
                      delay=datetime.timedelta(0), sender=sender,
                      tags=["digest-emails"])
Exemplo n.º 3
0
def send_digest_email(user_profile, subject, html_content, text_content):
    # type: (UserProfile, Text, Text, Text) -> None
    recipients = [{
        'email': user_profile.email,
        'name': user_profile.full_name
    }]
    sender = {'email': settings.NOREPLY_EMAIL_ADDRESS, 'name': 'Zulip'}

    # Send now, through Mandrill.
    send_future_email(recipients,
                      html_content,
                      text_content,
                      subject,
                      delay=datetime.timedelta(0),
                      sender=sender,
                      tags=["digest-emails"])