Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Alter Emails before sending with plugin

    Plugins for Kopano WebApp
    1
    1
    321
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Michael 0
      Michael 0 last edited by

      Hello,
      I want to alter the content of emails, before they get sent.
      Therefore I subscribe to the MessageContentPanel.on("beforesendrecord", this.beforSendRecord); event. If I alter the Email in plain text mode:

      beforSendRecord: function(panel, record){
            record.setBody(" ... my html text ... ", false);
      },
      

      it got saved, but nu as html:

      record.setBody(" ... my html text ... ", true);
      

      it doesn’t.
      If I subscribe to the beforesaverecord event I can alter the HTML but get the error Popup “Do you want to save changes”.

      Is there a way to alter the html body without the popup?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post