Email Config+
Overview
This extension module provides the developer and administrator with an enhanced configuration capabilities to the Email Connector module including an automatic initialization procedure of email template built applied in design-time, and exporting/importing configuration data (i.e. EmailAccount, OAuthProvider, EmailTemplate) available at running-time.
Documentation
Description
This extension module provides the developer and administrator with an enhanced configuration capabilities to the Email Connector module including an automatic initialization procedure of email template built applied in design-time, and exporting/importing configuration data (i.e. EmailAccount, OAuthProvider, EmailTemplate) available at running-time.
Typical usage scenario
So you decided to use the Email Connector marketplace module to send/receive email in your application. You have already built your configuration objects such as EmailAccount, OAuthProvider and EmailTemplate. They all fly as you designed, so you are almost ready. Just almost, but not completely enough. After you have published the application to an environment, you just realized that all your configuration data is missing, even your EmailTemplate objects which should not be a subject of your application administrators. Therefore, you should rebuild them, in each environment (and local development), or you have to figure out an initialization procedure handling this automatically.
Guess what: you are lucky! The Email Config+ performs this instead of you. Check how!
Features and limitations
-
Export and import configuration data of email accounts, OAuth providers and email templates.
-
Start-up initialization mechanism creating and updating EmailTemplate objects by exported XML files. This keeps your EmailTemplate objects up-to-date according to the most recent implementation (exported to XML).
Dependencies
This module is compatible with the Mendix v9.24.0.
-
Community Commons (v10.0.0):
https://marketplace.mendix.com/link/component/170 -
Email Connector (v4.1.0):
https://marketplace.mendix.com/link/component/120739
Installation
-
Import the EmailConfig+ module from the Mendix MarketPlace.
-
Integrate the SNIP_Overview snippet to the application UI and publish it under the setting/configuration menu.
-
Check/Set the source folder of configuration files (see ConfigPath constant)
-
Assign module roles MR_AppTechAdmin and MR_AppDeveloper.
Usage
-
Run the application with a MR_AppDeveloper user.
-
Switch to the SNIP_Overview and export the required templates to the XML file under the configuration folder with the file name satisfying the required syntax.
-
Inject the invocation of SUB_InitEmailTemplateConfig MF into the ‘After Start-Up’ flow of your application. If you do not have such microflow yet, build it. The ConfigName param shall apply the value that you used for naming the XML.
-
Run the application with a MR_AppTechAdmin user.
-
At source environment: switch to the SNIP_Overview and export the required configuration data to the XML files.
-
At source environment: switch to the SNIP_Overview and import the desired configuration data from the XML files.
Facts
-
The EmailTemplate XML files used in initialization shall follow a naming convention:
-
Syntax: EmailTemplateConfig_.xml
-
: is the param value to be referred to in the ASU_InitEmailTemplateConfig flow.
-
-
All 3 exportable configuration data have their own XSD, that you find under the EmailConfig+ folder in the Resources.
-
Do not bother with the MR_Developer module role. (It is for the developer of this module.)
Configuration
-
ConfigPath: the source folder of all EmailTemplate XML files imported by the email template initialization procedures.
Known bugs/issue
Please use the ‘User reviews’ channel of this module at the Mendix Marketplace to report any issue you experience. Thanks!