To create an email template, go to the Email templates repository (Main menu → Repositories → All Repositories → Independent objects → Email templates) and click the New button.
You need to:
The email body is taken from the Email body template property. This property contains a report template. See the reports article to learn more about report templates.
In case the email body is a static text, you need to:
If you need to add some object data into the body of the email template (e.g. Last name of the recipient), then:
As a result, a report is generated for an object (for which an email notification is being sent out) and is substituted in the email body.
Attention! The data is substituted correctly if the class you select for the report template and the class of the object (for which the email notification is being sent out) coincide.
Email attachments are created in the Attachment files repository (Main menu → Repositories → All Repositories → Independent objects → Attachment files) and are then attached to email templates on the Attachments tab of the Email template Properties Window. You can attach several files at once, if needed.
To attach a previously created static file (e.g. "test.txt"):
Before the email notification is sent, the report will be generated based on the selected report template and attached to the email.
In order to attach a table generated based on a dynamic filter, to an email:
Before the email notification is sent, the selected filter will be run. Its results will be saved as the MS Excel Table and attached to the email.
If you need to impose restrictions (e.g. to substitute a Person from whom the email notification is being sent out into the filter property), refer to Configuration of filter mappings for attachment files.
To configure filter mappings for an attachment file, open the Filter mappings Window (Attachment file Properties Window → Actions button → Open Object Lists – Filter mappings). Configuration of filter mappings here is similar to Configuration of filter mappings for the reports template (see the Binding data filter configuration article for details).
To manage Connection settings, open the Connection settings repository (Main menu → Repositories → All Repositories → Independent objects → Connection settings).
Object of this repository is the value of the Connection settings property in the Email template Properties Window.
Refer to your Mail Server Network Admin or to the Internet provider to learn the required information on connection settings (e.g. address and SMTP server port).