Protected Modules

Protected modules feature allows items to be marked as protected. Before adding or using these modules, a listener is called to verify their protection status. This ensures that only authorized actions can access or modify these protected items, maintaining security and control over sensitive modules within the system.
mailui.init({ protectedModules: ["countdown"] });

Available modules #

These are the modules currently accessible for protected.

Tools #

All tools are available for protect.
row column heading text button html image socialIcon divider spacer icons card countdown

Others #

userUploads aiGenerative saveToBlock

Listener #

A protected listener is triggered before adding or using protected modules. This listener checks the protection status, ensuring that only authorized actions can access or modify these modules. This mechanism helps maintain security and control over sensitive components.
mailui.addEventListener( "protectedModules:verifyAccess", async (params: {module: string}, done: Function) => { // Check module access if (params.module === 'moduleName') { done(false); // return false | true } } );

Explore Our Email Builder