mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-21 01:58:19 +02:00
if files condition restored
This commit is contained in:
parent
fc0ae58420
commit
97b3444a92
@ -120,6 +120,7 @@ def send_templated_mail(template_name,
|
|||||||
recipients, bcc=bcc)
|
recipients, bcc=bcc)
|
||||||
msg.attach_alternative(html_part, "text/html")
|
msg.attach_alternative(html_part, "text/html")
|
||||||
|
|
||||||
|
if files:
|
||||||
for filename, filefield in files:
|
for filename, filefield in files:
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
msg.attach_file(filefield.path)
|
msg.attach_file(filefield.path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user