code: def async_mail_task(subject_or_message, to=None, template=None, **kwargs):
      
      to = to or kwargs.pop('recipients', [])
      msg = make_message(subject_or_message, to, template, **kwargs)
      with mail.connect() as connection:
          connection.send(msg)
docs: Celery task to send emails asynchronously using the mail bundle.