Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add, remove, or edit email templates. Email Templates are used when creating new projects, or sending on project information reminders. The information an email contains can be customized to the Server Administrators needs. 

email

Creating and Editing templates

Email templates can be simple or more advanced with embedded code. They can be either plain or HTML format.

These are variables available when sending and depend on whether the user is new or notWe use a templating language called Liquid all features here are available for use.

You can insert variables in the email templates using "{{ variable }}" a list of available variables is further down on the page. We have two types of emails that can be sent, either emails for new users or reminders to existing users. The two types have different variables available.


Available variables for new user email: 

...

VariableDescription
project_user.project.name

...

Project Name
project_user.project.description

...

Project Description
project_user.nameFull Name of new user
project_user.emailEmail for new user
project_user.first_name

...

First name for new user
project_user.

...

last_name

...

Last name for new user
project_user.project.

...

database.nameName of database for the project
project_user.project.database.server

...

Server for database for the project
project_user.project.

...

  • user - the user object with the same attributes as project_user.user over
  • server - name of server admin is connected (all of the databases is also on)

...

ownerName of the owner of the project

Control flow variables for new user email

VariableDescription
new_user

If the user is a completely new user or if they are just new in the project

different_ownerIf the user sending the email is from another owner(or is a server administrator


Available variables for reminder email: 

VariableDescription
user.nameFull Name of user
user.emailEmail for  user
user.last_nameLast name for  user
user.first_nameFirst name for the user
user.usernameUsername for the user
serverServer for the user

Available variables for both types

VariableDescription
pw

Password for the user(if it has been generated)

current_user.nameName of the user sending the email
current_user.firmFirm of the user sending the email
project_listList of projects the user has access to