Page tree
Skip to end of metadata
Go to start of metadata

The FIleCloud Email Template Tool is available in FileCloud version 20.3 and later.


The Email Template tool enables you to perform the following email template import and export actions:

  • Import a new template to replace an existing template in the DB
  • Batch import templates from a directory to the DB
  • Export a specific template from the DB
  • Batch export templates to a directory from the DB

The tool is EmailTemplateTool.php, and is located in C:\xampp\htdocs\resources\tools\email.

Note: The tool handles template files formatted with or without prefixes and suffixes, even in the same list in a command.

Available commands:

ActionCommandexample
Batch import templates from current directory to FileCloud
-i

php EmailTemplateTool.php -i

Batch import all templates from current directory to FileCloud database

Batch export templates from FileCloud to current dir
-e
php EmailTemplateTool.php -e

Batch export all templates from FileCloud database to current directory

Import a specific template from the current directory to FileCloud.
-i -t templatename

php EmailTemplateTool.php -i -t welcome_body_tmp

Import the template welcome_body_tmp from the current directory to the FileCloud database.

Export a specific template from FileCloud to the current directory.
-e -t  templatename
php EmailTemplateTool.php -e -t welcome_body_tmpl

Export the template welcome_body_tmp1 from the FileCloud database to the current directory

Import specific templates from the current directory to FileCloud
-i -t templatename1 -t templatename2 ...

or

-i -t templatename1, templatename2 ...
php EmailTemplateTool.php -i -t welcome_body_tmpl -t CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt
OR

php EmailTemplateTool.php -i -t welcome_body_tmpl,CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt

Import the templates welcome_body_tmpl and CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt from the current directory to the FileCloud database.

Export specific templates from FileCloud to the current directory.
-e -t templatename1 -t templatename2 ...

or

-e -t templatename1, templatename2 ...

php EmailTemplateTool.php -e -t welcome_body_tmpl -t CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt
OR

php EmailTemplateTool.php -e -t welcome_body_tmpl,CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt

Export the templates welcome_body_tmpl and CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt from the FileCloud database to the current directory.

Export specific templates from FileCloud to a specific directory.
-e -t templatename1 -t templatename2 . . . -d "directorypath"
php EmailTemplateTool.php -e -t welcome_body_tmpl -t CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt -d "C:\Users\joe\Desktop\nondeftemplates"

Export the templates welcome_body_tmpl and CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt from the FileCloud database to the directory C:/Users/joe/Desktop/nondeftemplates.

Import specific templates from a specific directory to FileCloud
-i -t templatename1 -t templatename2 . . .  -d "directorypath"
php EmailTemplateTool.php -i -t welcome_body_tmpl -t CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt -d "C:\Users\joe\Desktop\nondeftemplates"

Import the templates welcome_body_tmpl and CUSTOMIZATION_TEMPLATE_shareemail_body_limited_tmpl.txt from the directory C:\Users\joe\Desktop\nondeftemplates to the FileCloud database.

Import a batch of templates from a specific directory to FileCloud.
-i -d "directorypath"
php EmailTemplateTool.php -i -d "C:\Users\joe\Desktop\nondeftemplates"

Batch import the templates from the directory C:\Users\joe\Desktop\nondeftemplates to the FileCloud database.

Export a batch of templates from FileCloud to a specific directory.
-e -d "directorypath"
php EmailTemplateTool.php -e -d "C:\Users\joe\Desktop\nondeftemplates"

Batch export the templates from the FileCloud database to the directory C:\Users\joe\Desktop\nondeftemplates.

  • No labels