Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Problem
- I need to modify the standard e-mail body
Solution
- Change the stylesheet for e-mail processing
- The e-mail stylesheet is contained in the file
./config/scheduler_mail.xsl
. You can change
...
- any text contained in the stylesheet
...
- ,
...
...
- e.g.
...
- for messages like this:
Code Block | ||||
---|---|---|---|---|
| ||||
... <xsl:template match="/scheduler_event [@event='database_wait']" mode="custom-message"> <job title = "Send Mail" order = "no" stop_on_error = "yes"> <params> <param name="to" value="<mail_adress>" /> <param name="from" value="<mail_adress>" /<!-- body text in case of database errors with need_db = yes --> <param<xsl:if nametest="subject" value="this is my mail" /> <param name="host" value="<smtp_server>" />$lang='de'">Beim Zugriff auf die Datenbank ist ein Fehler aufgetreten. Der JobScheduler wartet bis die Datenbank wieder verfügbar ist.</xsl:if> <param<xsl:if nametest="queue_directory" value="c:\temp\smtp" /> <param name="body" value="this is my body" />$lang='en'">Error occurred accessing the database. The JobScheduler will wait until the database is accessible.</xsl:if> </params> <script language="java" java_class="sos.scheduler.managed.JobSchedulerManagedMailJob"> </script> </job> |
You can add your own text for the body. Additional parameters for attachments are available.
...
xsl:template>
... |
Please note that individual changes to the stylesheet
- will apply for all e-mail being sent by a JobScheduler Master.
- must be re-configured for each new installation of JobScheduler. The configuration is maintained during updates of the JobScheduler installation.
See also
...