The Email with Templates module lets you send emails with templates. Email templates can be managed with the possibility of using tokens. With the tokens available in the email template, the attributes and references of an object are filled in automatically and correctly.
1.1 Typical Use Cases
The typical usage scenario is sending emails with a template system and using tokens to handle all of your outgoing standard emails.
1.2.1 Mendix Modules
1.2.2 Java Libraries
To configure this module, follow these steps:
- Download the Mx Model Reflection module from the Mendix App Store.
- Download and configure the Encryption module from the Mendix App Store.
- Add the Administration snippet to a custom page in a different module.
- View the example in the USE_ME > Examples folder.
- Create a duplicate of this example in your own module and customize it to make it fit your needs:
Sub_CreateAndQueueEmail– this is preferred for normal environments and will send the email in the background using a scheduled event
Sub_CreateAndSendEmail– this is preferred for Free App environments and sends an email directly; this approach will block the user’s flow and does not include a retry when the sending fails
Post-deployment– after deploying, you have to set up your email settings and insert your own email templates using the newly created navigation items under Administrator
- Go to
MxObjects_Overviewand synchronize the objects. Make sure you do this every time you have added new objects.