Merge branch 'release/v12.96'
This commit is contained in:
+8
-1
@@ -80,7 +80,14 @@ def send_template_email(from_email,to_email,subject,
|
|||||||
text_content = textify(html_content)
|
text_content = textify(html_content)
|
||||||
# html_content = newlinetobr(html_content)
|
# html_content = newlinetobr(html_content)
|
||||||
|
|
||||||
if 'cc' in kwargs:
|
print(kwargs['bcc'])
|
||||||
|
|
||||||
|
if 'bcc' in kwargs and 'cc' in kwargs:
|
||||||
|
msg = EmailMultiAlternatives(subject, text_content, from_email, to_email,cc=kwargs['cc'],
|
||||||
|
bcc=kwargs['bcc'])
|
||||||
|
elif 'bcc' in kwargs:
|
||||||
|
msg = EmailMultiAlternatives(subject, text_content, from_email, to_email,bcc=kwargs['bcc'])
|
||||||
|
elif 'cc' in kwargs:
|
||||||
msg = EmailMultiAlternatives(subject, text_content, from_email, to_email,cc=kwargs['cc'])
|
msg = EmailMultiAlternatives(subject, text_content, from_email, to_email,cc=kwargs['cc'])
|
||||||
else:
|
else:
|
||||||
msg = EmailMultiAlternatives(subject, text_content, from_email, to_email)
|
msg = EmailMultiAlternatives(subject, text_content, from_email, to_email)
|
||||||
|
|||||||
+5
-1
@@ -2643,7 +2643,11 @@ class VirtualRaceForm(ModelForm):
|
|||||||
enddatetime
|
enddatetime
|
||||||
)
|
)
|
||||||
|
|
||||||
registration_closure = cd['registration_closure']
|
try:
|
||||||
|
registration_closure = cd['registration_closure']
|
||||||
|
except KeyError:
|
||||||
|
registration_closure = enddatetime+datetime.timedelta(days=1)
|
||||||
|
cd['registration_closure'] = registration_closure
|
||||||
|
|
||||||
registration_form = cd['registration_form']
|
registration_form = cd['registration_form']
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -2446,8 +2446,8 @@ def handle_send_template_email(template,email,fromemail,rowername,
|
|||||||
}
|
}
|
||||||
|
|
||||||
res = send_template_email('Rowsandall <info@rowsandall.com>',
|
res = send_template_email('Rowsandall <info@rowsandall.com>',
|
||||||
fullemail,subject,
|
['info@rowsandall.com'],subject,
|
||||||
template,d,cc=[fromemail],**kwargs)
|
template,d,cc=[fromemail],bcc=fullemail,**kwargs)
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def handle_sendemail_message(email,fromemail,rowername,message,teamname,managername,
|
def handle_sendemail_message(email,fromemail,rowername,message,teamname,managername,
|
||||||
|
|||||||
Reference in New Issue
Block a user