@@ -23,6 +23,7 @@ def send(
23
23
channel : str ,
24
24
* ,
25
25
body : Optional [str ] = None ,
26
+ subject : Optional [str ] = None ,
26
27
template_name : Optional [str ] = None ,
27
28
template_variables : Optional [Dict [str , Any ]] = None ,
28
29
provider_name : Optional [str ] = None ,
@@ -34,6 +35,7 @@ def send(
34
35
recipient_value: The identifier for the recipient (e.g., Slack user ID, email address)
35
36
channel: The channel to send the message through (e.g., "SLACK", "EMAIL")
36
37
body: Optional message body text (required if no template)
38
+ subject: Optional subject for the message (required for channel type `EMAIL` with body)
37
39
template_name: Optional template name (required if no body)
38
40
template_variables: Optional template variables for template-based messages
39
41
provider_name: Optional provider name (must be provided with provider_code)
@@ -61,6 +63,10 @@ def send(
61
63
62
64
if body is not None :
63
65
payload ["body" ] = body
66
+
67
+ if subject is not None :
68
+ payload ["subject" ] = subject
69
+
64
70
elif template_name is not None :
65
71
payload ["template" ] = {"name" : template_name }
66
72
if template_variables is not None :
0 commit comments