From fb6ada6cee9beefb564e128093d9111771056dc2 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Sat, 14 Oct 2017 07:07:16 +0200
Subject: [PATCH] BCC bug fixed

---
 mails/forms.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mails/forms.py b/mails/forms.py
index 4dfc63413..fd1feb9cb 100644
--- a/mails/forms.py
+++ b/mails/forms.py
@@ -74,6 +74,8 @@ class EmailTemplateForm(forms.Form):
                     bcc_list = [bcc_to]
                 else:
                     bcc_list = bcc_to
+        elif re.match("[^@]+@[^@]+\.[^@]+", self.mail_data.get('bcc_to')):
+            bcc_list = [self.mail_data.get('bcc_to')]
 
         if self.cleaned_data.get('extra_recipient') and self.recipient:
             bcc_list.append(self.cleaned_data.get('extra_recipient'))
-- 
GitLab