Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions skyvern/forge/sdk/api/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ async def build_message(
) -> EmailMessage:
to = ", ".join(recipients)
msg = EmailMessage()
msg["BCC"] = sender # BCC the sender so there is a record of the email being sent
msg["From"] = sender
msg["Subject"] = subject
msg["To"] = to
msg._headers = [
("BCC", sender), # BCC the sender so there is a record of the email being sent
("From", sender),
("Subject", subject),
("To", to),
]
msg.set_content(body)

return msg
Expand Down