mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-17 02:39:40 +00:00
Strip newlines from email block (#1874)
This commit is contained in:
parent
0b8f64e8ab
commit
8c4dd54e33
1 changed files with 1 additions and 1 deletions
|
@ -1651,7 +1651,7 @@ class SendEmailBlock(Block):
|
|||
self, workflow_run_context: WorkflowRunContext, workflow_run_id: str
|
||||
) -> EmailMessage:
|
||||
msg = EmailMessage()
|
||||
msg["Subject"] = self.subject + f" - Workflow Run ID: {workflow_run_id}"
|
||||
msg["Subject"] = self.subject.strip().replace('\n', '').replace('\r', '') + f" - Workflow Run ID: {workflow_run_id}"
|
||||
msg["To"] = ", ".join(self.get_real_email_recipients(workflow_run_context))
|
||||
msg["BCC"] = self.sender # BCC the sender so there is a record of the email being sent
|
||||
msg["From"] = self.sender
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue