MailTemplate is a base type that provides configuration parameters and text templates for the User Self-Registration Process and Password Reset.

MailTemplate extends AbstractNode and provides the following additional properties.

Name Type Description
name String The name of the template. Used for looking up the template in User Self-Registration and Password Reset.
text String The text of this template
locale String The locale for which this template is intended

Custom MailTemplates can be created and used to send mails in conjunction with the send_plaintext_mail() and send_html_mail() functions.

Note: Using MailTemplates is not strictly necessary when using the builtin functions because they accept the text of the mail directly.

Graph-Browser

About this article
Last change 2017-08-30
Topics Structr 2.0