Skip to content

Commit 56212a6

Browse files
fdikVolker Birkfsbraun
authored
fix: from and to are mixed up, to needs being split from space separated into a list (#22)
Co-authored-by: Volker Birk <[email protected]> Co-authored-by: Fabian Braun <[email protected]>
1 parent 7f0d55f commit 56212a6

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
@@ -187,7 +187,7 @@ class Meta:
187187
def execute(self, form, request):
188188
from django.core.mail import mail_admins, send_mail
189189

190-
recipients = (self.get_parameter(form, "sendemail_recipients") or "").split()
190+
recipients = self.get_parameter(form, "sendemail_recipients") or ""
191191
template_set = self.get_parameter(form, "sendemail_template") or "default"
192192
context = dict(
193193
cleaned_data=form.cleaned_data,
@@ -219,7 +219,7 @@ def execute(self, form, request):
219219
subject,
220220
message,
221221
self.from_mail,
222-
recipients,
222+
recipients.split(),
223223
fail_silently=True,
224224
html_message=html_message,
225225
)

0 commit comments

Comments
 (0)