Merge branch 'dev' into feature-ai

This commit is contained in:
shamoon
2025-10-15 16:32:55 -07:00
40 changed files with 3415 additions and 615 deletions

View File

@@ -1173,12 +1173,15 @@ def run_workflows(
else ""
)
try:
attachments = []
if action.email.include_document and original_file:
attachments = [document]
n_messages = send_email(
subject=subject,
body=body,
to=action.email.to.split(","),
attachment=original_file if action.email.include_document else None,
attachment_mime_type=document.mime_type,
attachments=attachments,
use_archive=False,
)
logger.debug(
f"Sent {n_messages} notification email(s) to {action.email.to}",