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. See attached sample of scheduler_mail.xsl.
  • You can change any text contained in the stylesheet, e.g. for messages like this:
Sample extract from stylesheet
...
    <xsl:template match="/scheduler_event [@event='database_wait']" mode="custom-message">      
        <!-- body text in case of database errors with need_db = yes -->
        <xsl:if test="$lang='de'">Beim Zugriff auf die Datenbank ist ein Fehler aufgetreten. Der JobScheduler wartet bis die Datenbank wieder verfügbar ist.</xsl:if>
        <xsl:if test="$lang='en'">Error occurred accessing the database. The JobScheduler will wait until the database is accessible.</xsl:if>
    </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