(datatuple, fail_silently=False, auth_user=None,
                   auth_password=None, connection=None, callback=None)
Given a datatuple of (subject, message, from_email, recipient_list), sends
    each message to each recipient list. Returns the number of e-mails sent.

    If from_email is None, the DEFAULT_FROM_EMAIL setting is used.
    If auth_user and auth_password are set, they're used to log in.
    If auth_user is None, the EMAIL_HOST_USER setting is used.
    If auth_password is None, the EMAIL_HOST_PASSWORD setting is used.

    Note: The API for this method is frozen. New code wanting to extend the
    functionality should use the EmailMessage class directly.
Given a datatuple of (subject, message, from_email, recipient_list), sends
    each message to each recipient list. Returns the number of e-mails sent.
Given a datatuple of ( subject message from_email recipient_list ) sends each message to each recipient list . Returns the number of e - mails sent .
def send_mass_mail(datatuple, fail_silently=False, auth_user=None,
                   auth_password=None, connection=None, callback=None):
    """
    Given a datatuple of (subject, message, from_email, recipient_list), sends
    each message to each recipient list. Returns the number of e-mails sent.

    If from_email is None, the DEFAULT_FROM_EMAIL setting is used.
    If auth_user and auth_password are set, they're used to log in.
    If auth_user is None, the EMAIL_HOST_USER setting is used.
    If auth_password is None, the EMAIL_HOST_PASSWORD setting is used.

    Note: The API for this method is frozen. New code wanting to extend the
    functionality should use the EmailMessage class directly.
    """
    connection = connection or get_connection(username=auth_user,
                                    password=auth_password,
                                    fail_silently=fail_silently)
    messages = [EmailMessage(subject, message, sender, recipient)
                for subject, message, sender, recipient in datatuple]
    connection.send_messages(messages, callback=callback)
def send_mass_mail ( datatuple , fail_silently = False , auth_user = None , auth_password = None , connection = None , callback = None ) : connection = connection or get_connection ( username = auth_user , password = auth_password , fail_silently = fail_silently ) messages = [ EmailMessage ( subject , message , sender , recipient ) for subject , message , sender , recipient in datatuple ] connection . send_messages ( messages , callback = callback )