Skip to content

Commit

Permalink
Fix: send_mail parameters were incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 8, 2025
1 parent f7e2413 commit 0da8600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangocms_form_builder/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 0da8600

Please sign in to comment.