Email Config+

Category: Modules
Subcategory: Messaging

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.

Required external modules:

Installation

  1. Import the EmailConfig+ module from the Mendix MarketPlace.
  2. Integrate the SNIP_Overview snippet to the application UI and publish it under the setting/configuration menu.
  3. Check/Set the source folder of configuration files (see ConfigPath constant)
  4. Assign module roles MR_AppTechAdmin and MR_AppDeveloper.

Usage

A) To build EmailTemplate initialization procedure (for each EmailTemplate):
  1. Run the application with a MR_AppDeveloper user.
  2. 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.
  3. 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.
B) To migrate EmailAccount and/or OAuthProvider configuration data between two different environments:
  1. Run the application with a MR_AppTechAdmin user.
  2. At source environment: switch to the SNIP_Overview and export the required configuration data to the XML files.
  3. 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

Relevant environment constant of the module:
  • ConfigPath: the source folder of all EmailTemplate XML files imported by the email template initialization procedures.

Known bugs/issue

Not yet. 🙂

Please use the ‘User reviews’ channel of this module at the Mendix Marketplace to report any issue you experience. Thanks!

Releases

Version: 1.1.1
Framework Version: 9.24.0
Release Notes: Fixed: - Useless SNIP_Overview because of an missing access to some OAuthProvider attributes at the Email Connector module. (Removed unnecessary UI fields referring to these attributes.) - Failed exporting Email Template without ReplyTo value (XSD was modified to accept missing ReplyTo element.) - Failed exporting Email Template having placeholder elements (XSD was modified to accept missing FindMember element.)
Version: 1.1.0
Framework Version: 9.24.0
Release Notes: - Change: Comparing the recent and new configuration files by the complete file content. - Fix: error on deleting EmailConfig object in case of EmailConfig or AuthProvider
Version: 1.0.0
Framework Version: 9.24.0
Release Notes: First release.