Below custom script allows to send email with cc and bcc
frappe.call({ method: "frappe.core.doctype.communication.email.make", args: { recipients: "[email protected]", cc: "[email protected]", bcc: "[email protected]", content: d, subject: "Test", doctype: "Panel", name: cur_frm.doc.name, send_email: 1, communication_medium: "Email", }, async: false, callback: function(rh){ console.log("mail sent") } });
0 Comments