Skip to content

Commit b03e318

Browse files
committed
fixed success message
1 parent d46b220 commit b03e318

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

email/1.3.0/api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ actions:
8686
- name: cc_emails
8787
description: cc_emails
8888
multiline: false
89-
example: "[email protected]"
89+
9090
required: false
9191
schema:
9292
type: string

email/1.3.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def send_email_smtp(
114114
msg["Subject"] = subject
115115

116116
if cc_emails:
117-
msg["cc"] = cc_emails
117+
msg["Cc"] = cc_emails
118118

119119
msg.attach(MIMEText(body, body_type))
120120

@@ -165,7 +165,7 @@ def send_email_smtp(
165165
self.logger.info("Successfully sent email with subject %s to %s" % (subject, recipient))
166166
return {
167167
"success": True,
168-
"reason": "Email sent to %s!" % recipient,
168+
"reason": "Email sent to %s, %s!" %(recipient,cc_emails) if cc_emails else "Email sent to %s!" % recipient,
169169
"attachments": attachment_count
170170
}
171171

0 commit comments

Comments
 (0)