From 7644958ec7a5f7d8c0c6b2c2ac232bb2f54ec5cb Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 26 Dec 2023 19:23:08 +0530 Subject: [PATCH] fix: convert to/cc/bcc array to comma separated emails --- frontend/src/components/CommunicationArea.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index 84165b6c..cf9dacf6 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -105,11 +105,14 @@ const onNewEmailChange = (value) => { } async function sendMail() { + let recipients = newEmailEditor.value.toEmails + let cc = newEmailEditor.value.ccEmails + let bcc = newEmailEditor.value.bccEmails await call('frappe.core.doctype.communication.email.make', { - recipients: doc.value.data.email, + recipients: recipients.join(','), attachments: attachments.value.map((x) => x.name), - cc: '', - bcc: '', + cc: cc.join(','), + bcc: bcc.join(','), subject: 'Email from Agent', content: newEmail.value, doctype: props.doctype,