code: def send_mail(subject, message, from_email, recipient_list, html_message='',
                scheduled_time=None, headers=None, priority=PRIORITY.medium):
      
  
      subject = force_text(subject)
      status = None if priority == PRIORITY.now else STATUS.queued
      emails = []
      for address in recipient_list:
          emails.append(
              Email.objects.create(
                  from_email=from_email, to=address, subject=subject,
                  message=message, html_message=html_message, status=status,
                  headers=headers, priority=priority, scheduled_time=scheduled_time
              )
          )
      if priority == PRIORITY.now:
          for email in emails:
              email.dispatch()
      return emails
docs: Add a new message to the mail queue. This is a replacement for Django's
      ``send_mail`` core email method.