Skip to content

Commit 0da8600

Browse files
committed
Fix: send_mail parameters were incorrect
1 parent f7e2413 commit 0da8600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djangocms_form_builder/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Meta:
186186
)
187187

188188
def execute(self, form, request):
189-
recipients = (self.get_parameter(form, "sendemail_recipients") or [])
189+
recipients = (self.get_parameter(form, "sendemail_recipients") or "").split()
190190
template_set = self.get_parameter(form, "sendemail_template") or "default"
191191
context = dict(
192192
cleaned_data=form.cleaned_data,
@@ -216,8 +216,8 @@ def execute(self, form, request):
216216
send_mail(
217217
subject,
218218
message,
219-
recipients,
220219
self.from_mail,
220+
recipients,
221221
fail_silently=True,
222222
html_message=html_message,
223223
)

0 commit comments

Comments
 (0)