Using your own custom email template
Instead of using or modifying the email template provided by default, you can create your own email template and use it with the DailyReminder job.
To use your own email template:
- Create an XSL stylesheet to use as your email template.
-
Open the TEXTML Administration perspective by clicking the
TEXTML Administration shortcut on the
tool bar. If the shortcut is not displayed, follow these steps:
- Select Window > Perspective > Open Perspective > Other
- Click TEXTML Administration.
- Click Open.
- In the TEXTML Administration view, double-click the server. If your server is not displayed in the view, you must add it to the view.
- When the Connect as dialog opens, type your username and password and click OK.
- Double-click the name of your Content Store to open a connection to it.
- Locate the templates folder in the repository's /system/scheduler folder.
- Right-click the templates folder and click Insert Documents.
- Click Add File and browse to select custom email template.
-
In the Set Options:
- Select Add.
- Select Replace.
- Clear Indexable.
- Click OK.
- Open the %SchedulerDir%/conf/schedule.xml file.
-
Locate the DailyReminder job as follows.
For example:
<job useClass="com.ixiasoft.cms.plugins.DailyReminder" enable="false"> <!-- You can add the tag <textml>, <dita.out>, or <smtp/> to override the default value --> <schedule> <when>10 2 * * *</when><!-- The job will run at 2:10 am --> </schedule> <configuration> <property name="transform.xsl" value="daily_reminder.xsl"/> </configuration> </job>
-
Edit the
value
attribute for theproperty
element. Replace the default value of daily_reminder.xsl with the name of your custom email template. - When you are done, save and close the schedule.xml file.
-
Restart the CCMS Scheduler service:
- On Windows: Open the Services console, right-click Ixiasoft Scheduler and click Stop, and then right-click Ixiasoft Scheduler and click Start.
- On Linux: Run the following
commands:
/sbin/service scheduler stop /sbin/service scheduler start