We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e35880 commit 1f575f7Copy full SHA for 1f575f7
notifiers/providers/email.py
@@ -138,8 +138,10 @@ def _prepare_data(self, data: dict) -> dict:
138
def _build_email(data: dict) -> EmailMessage:
139
email = EmailMessage()
140
email["To"] = data["to"]
141
- email["CC"] = data.get("cc", [])
142
- email["Bcc"] = data.get("bcc", [])
+ if "cc" in data:
+ email["CC"] = data.get("cc")
143
+ if "bcc" in data:
144
+ email["Bcc"] = data.get("bcc")
145
email["From"] = data["from"]
146
email["Subject"] = data["subject"]
147
email["Date"] = formatdate(localtime=True)
0 commit comments