E-mail templates can be created using Extensible Stylesheet Language Transformation (XSLT).
Create an e-mail template in XSLT
-
Create an e-mail ID, and make sure to name the ID so that you can later recognize it, for example, Alert e-mail. For more information, see Create e-mail identifications.
-
Connect the ID to the Alerts function. For more information, see Define an e-mail identification for Alerts.
-
In the form, select the field and select a language code.
-
In the field, enter a sender name that indicates that the purpose of the e-mail message is to send an alert from Microsoft Dynamics AX and in the field, enter a sender e-mail address.
-
In the lower pane of the form, create records for each language that you need. Once you have created a template in a particular language, users can receive e-mail messages in that language.
-
For each record (template) enter the following information:
-
In the field, enter a subject for the template. The subject could include merge data. For more information, see About setting up alert e-mail templates.
-
In the field, select the layout.
-
Note |
---|
Make sure that an e-mail address is defined in the form for the users that need to receive alerts by e-mail. Click Microsoft Dynamics AXmenu > Tools> Optionsto open the form. |
Insert links and merge data in the e-mail template
-
Click the button in the form.
-
Click the button to load an existing XSLT style sheet, or create your own. For more information about link types and merge data, see About setting up alert e-mail templates.
Note |
---|
The HTML markup that is created by the XSLT transformation cannot contain a standalone HTML document with <title> ... </title> tags in the <header> ... </header> section. |