Commits

Stephen McDonald  committed 990f47a

bug-fix to issue where attachments would be ignored if only a text template existed

  • Participants
  • Parent commits 05167fc

Comments (0)

Files changed (1)

File email_extras/utils.py

 			addr_from, [addr])
 		if body_html is not None:
 			msg.attach_alternative(encrypt_if_key(body_html, addr), "text/html")
-			for parts in attachments_parts:
-				msg.attach(parts[0], encrypt_if_key(parts[1], addr))
+		for parts in attachments_parts:
+			msg.attach(parts[0], encrypt_if_key(parts[1], addr))
 		msg.send(fail_silently=fail_silently)