Sending Email via custom script

by | Feb 2, 2023 | Frappe Framework | 0 comments

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")
    }
});

By Aadhil PM

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *