You can make use of the following document:
https://docs.mendix.com/appstore/modules/email-with-templates