

def send_mail(template_name, context, from_email, recipient_list, fail_silently=False, auth_user=None, auth_password=None, connection=None, **kwargs):
    "\n    Easy wrapper for sending a single email message to a recipient list using\n    django template system.\n\n    It works almost the same way as the standard\n    :func:`send_mail()<django.core.mail.send_mail>` function.\n\n    .. |main_difference| replace:: The main\n        difference is that two first arguments ``subject`` and ``body`` are\n        replaced with ``template_name`` and ``context``. However you still can\n        pass subject or body as keyword arguments to provide static content if\n        needed.\n\n    |main_difference|\n\n    The ``template_name``, ``context``, ``from_email`` and ``recipient_list``\n    parameters are required.\n\n\n    Note\n    ----\n    |args_note|\n\n    Arguments\n    ---------\n    template_name : str\n        |template_name|\n    context : dict\n        |context|\n    from_email : str\n        |from_email|\n    recipient_list : list\n        |recipient_list|\n\n    Keyword Arguments\n    -----------------\n    fail_silently : bool\n        If it's False, send_mail will raise an :exc:`smtplib.SMTPException`.\n        See the :mod:`smtplib` docs for a list of possible exceptions, all of\n        which are subclasses of :exc:`smtplib.SMTPException`.\n    auth_user | str\n        The optional username to use to authenticate to the SMTP server. If\n        this isn't provided, Django will use the value of the\n        :django:setting:`EMAIL_HOST_USER` setting.\n    auth_password | str\n        The optional password to use to authenticate to the SMTP server. If\n        this isn't provided, Django will use the value of the\n        :django:setting:`EMAIL_HOST_PASSWORD` setting.\n    connection : EmailBackend\n        The optional email backend to use to send the mail. If unspecified,\n        an instance of the default backend will be used. See the documentation\n        on :ref:`Email backends<django:topic-email-backends>` for more details.\n    subject : str\n        |subject|\n    body : str\n        |body|\n    render : bool\n        |render|\n\n    Returns\n    -------\n    int\n        The number of successfully delivered messages (which can be 0 or 1\n        since it can only send one message).\n\n    See Also\n    --------\n    :func:`django.core.mail.send_mail`\n        Documentation for the standard ``send_mail()`` function.\n    "
    connection = (connection or mail.get_connection(username=auth_user, password=auth_password, fail_silently=fail_silently))
    clean = kwargs.pop('clean', True)
    return EmailMessage(template_name, context, from_email, recipient_list, connection=connection, **from_email).send(clean=clean)

dataset/ETHPy150Open artemrizhov/django-mail-templated/mail_templated/utils.py send_mail/VarMisuse@87/944 `kwargs`->`from_email`