@@ -232,19 +232,21 @@ In case the HTML version if not needed it may be disabled by setting
232232
233233 send_email(subject, body_text, body_html, recipients, ** kwargs)
234234
235- ================= ==========================================================================================
236- **Parameter ** **Description **
237- ``subject `` (``str ``) The subject of the email template.
238- ``body_text `` (``str ``) The body of the text message to be emailed.
239- ``body_html `` (``str ``) The body of the html template to be emailed.
240- ``recipients `` (``list ``) The list of recipients to send the mail to.
241- ``extra_context `` **optional ** (``dict ``) Extra context which is passed to the template. The dictionary keys
242- ``call_to_action_text `` and ``call_to_action_url `` can be passed to show a call to action
243- button. Similarly, ``footer `` can be passed to add a footer.
244- ``**kwargs `` Any additional keyword arguments (e.g. ``attachments ``, ``headers ``, etc.) are passed
245- directly to the `django.core.mail.EmailMultiAlternatives
246- <https://docs.djangoproject.com/en/4.1/topics/email/#sending-alternative-content-types> `_.
247- ================= ==========================================================================================
235+ ====================== ==========================================================================================
236+ **Parameter ** **Description **
237+ ``subject `` (``str ``) The subject of the email template.
238+ ``body_text `` (``str ``) The body of the text message to be emailed.
239+ ``body_html `` (``str ``) The body of the html template to be emailed.
240+ ``recipients `` (``list ``) The list of recipients to send the mail to.
241+ ``extra_context `` **optional ** (``dict ``) Extra context which is passed to the template. The dictionary keys
242+ ``call_to_action_text `` and ``call_to_action_url `` can be passed to show a call to action
243+ button. Similarly, ``footer `` can be passed to add a footer.
244+ ``html_body_template `` **(optional, str) ** The path to the template used for generating the HTML version. By
245+ default, it uses the template specified in :ref: `openwisp_email_template `.
246+ ``**kwargs `` Any additional keyword arguments (e.g. ``attachments ``, ``headers ``, etc.) are passed
247+ directly to the `django.core.mail.EmailMultiAlternatives
248+ <https://docs.djangoproject.com/en/4.1/topics/email/#sending-alternative-content-types> `_.
249+ ====================== ==========================================================================================
248250
249251.. important ::
250252
0 commit comments