Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'cs'
Sv translation
languageen

Users with the domain administrator role can set email templates since version 2.9.18 and add translations to the email templates since version 2.9.19. 

There are 3 types of emails that could have a template:

  • Create account
  • Create pin
  • Reset password
  • Unlock account

Set the template

To set the template, you should go to the "Email templates" in the Administration top menu


By clicking on the template name, an editor will be open. Here is an example of the email template for new users

Expand
titleEmail template for new users
public class CustomNewUserNotificationTemplate extends com.belladati.mail.EmailTemplateBase {

	def user;
	def url;
	def request;
    def linksToDoc;
 
   protected String getSubject() {
      return "[${appName}] Account created";
   }
   
   protected String getBody() {
      def docs = linksToDoc?.trim() ? linksToDoc :
               "Instructions \"How to use ${appName}\" including documentation and short tutorial movies can be found at <a href=\"http://support.belladati.com\">http://support.belladati.com</a>."
	  return """<p>Dear ${user?.asString},</p>
		
	  <p>Your ${appName} account has been created.</p>

	  <p>Username: ${user?.username}</p>
	  <p>Password: you can set your password by following this link <a href="${url}/en/user/processrequest/${request?.id}/${request?.verificationCode}">${url}/en/user/processrequest/${request?.id}/${request?.verificationCode}</a>.</p>

	  <p>${docs}</p>

	  <p>Please do not hesitate to contact us if you have any questions or recommendations.</p> 
	  """
	}
}


Translation of email templates

You can add the translations for your email templates. To do that, select a preferred language, so all the templates will be displayed for the chosen language.

Next steps  

Administering users 

Sv translation
languageja

ドメイン管理者の役割を持つユーザーは、バージョン2.9.18以降のメールテンプレートを設定し、バージョン2.9.19以降のメールテンプレートに翻訳を追加できます。

テンプレートを持つことができるeメールには、4つのタイプがあります:

  • アカウントの作成
  • pinの作成
  • パスワードのリセット
  • アカウントのロック解除

テンプレートの設定

テンプレートを設定するには、[管理]トップメニューの[メールテンプレート]に移動する必要があります。


テンプレート名をクリックすると、エディタが開きます。新規ユーザー向けのメールテンプレートの例を次に示します。

Expand
titleEmail template for new users
public class CustomNewUserNotificationTemplate extends com.belladati.mail.EmailTemplateBase {

	def user;
	def url;
	def request;
    def linksToDoc;
 
   protected String getSubject() {
      return "[${appName}] Account created";
   }
   
   protected String getBody() {
      def docs = linksToDoc?.trim() ? linksToDoc :
               "Instructions \"How to use ${appName}\" including documentation and short tutorial movies can be found at <a href=\"http://support.belladati.com\">http://support.belladati.com</a>."
	  return """<p>Dear ${user?.asString},</p>
		
	  <p>Your ${appName} account has been created.</p>

	  <p>Username: ${user?.username}</p>
	  <p>Password: you can set your password by following this link <a href="${url}/en/user/processrequest/${request?.id}/${request?.verificationCode}">${url}/en/user/processrequest/${request?.id}/${request?.verificationCode}</a>.</p>

	  <p>${docs}</p>

	  <p>Please do not hesitate to contact us if you have any questions or recommendations.</p> 
	  """
	}
}


メールテンプレートの翻訳

メールテンプレートの翻訳を追加できます。これを行うには、優先言語を選択して、選択した言語のすべてのテンプレートが表示されるようにします。

次に  

Administering Administering Users