You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Problem

  • I need to modify the standard E-mail text

Solution

  • change the stylesheet for the mail appointment

How to find and activate the style sheet, have you already looked up in the JobScheduler Wiki. You can find some parts in the style sheet, where the element <text> is displayed. You can place your individual text here. This applies then for the whole JobScheduler installation, but which is not to recommended in my view.

It would be better for your purposes, if you write your own mail job, which can be called in specific situations (e.g. occurring by specific errors). You can use for this the standard job JobSchedulerManagedMailJob, its description can be found in the database of your installation, which is located in the file jobs (in case you have installed the JobScheduler with the choice 'Job Package: Housekeeping Jobs').

Your job could look like this:

    <job title = "Send Mails" order = "no" stop_on_error = "yes">
      <params>
        <param name="to" value="<mail_adress>" />
        <param name="from" value="<mail_adress>" />
        <param name="subject" value="this is my mail" />
        <param name="host" value="<smtp_server>" />
        <param name="queue_directory" value="c:\temp\smtp" />
        <param name="body" value="this is my body" />
      </params>
    <script language="java" java_class="sos.scheduler.managed.JobSchedulerManagedMailJob">
    </script>
 </job>

Here you can indicated an individual text. There are separate parameters for attachments.

  • No labels