From 0da8600cafbdc63d8304ed9d6c8a36fbee79a8c0 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Wed, 8 Jan 2025 11:45:45 +0100 Subject: [PATCH] Fix: send_mail parameters were incorrect --- djangocms_form_builder/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangocms_form_builder/actions.py b/djangocms_form_builder/actions.py index cdda186..521bbdc 100644 --- a/djangocms_form_builder/actions.py +++ b/djangocms_form_builder/actions.py @@ -186,7 +186,7 @@ class Meta: ) def execute(self, form, request): - recipients = (self.get_parameter(form, "sendemail_recipients") or []) + recipients = (self.get_parameter(form, "sendemail_recipients") or "").split() template_set = self.get_parameter(form, "sendemail_template") or "default" context = dict( cleaned_data=form.cleaned_data, @@ -216,8 +216,8 @@ def execute(self, form, request): send_mail( subject, message, - recipients, self.from_mail, + recipients, fail_silently=True, html_message=html_message, )