Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 30bba5c

Browse files
committed
[client] fix send_mail mutation
1 parent b6ee036 commit 30bba5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ def send_email(self, item):
26512651
if template_id is None:
26522652
template_id = item["template_id"]
26532653
if item["type"] == "user":
2654-
self.opencti.user.send_mail(id=item["id"], template_id=template_id)
2654+
self.opencti.user.send_mail(id=item["id"], template_id=template_id[0])
26552655
else:
26562656
raise ValueError(
26572657
"Not supported opencti_operation for this type",

0 commit comments

Comments
 (0)