This manual details stting the functionality of automatic e-mailing using the MAIL function in REPORTING
In order to send emails, it is necessary to install CAQservice and configure the service for SMTP.
Start the Reporting module in designer mode. /APL/SQLreporting.exe and licenses for sending emails.
- Select the required reporting query, eg "SPC Surveys outside the tolerance field"-
- Go to the "Editor" tab and under "Settings" you will find the "Mail" tab.
It is necessary to define the module that will be processed when sending an email. Using the yellow "Modules" icon on the left. Name the module for example "SPC.outside.print"create one record TYPE TYPE "PRINT ASSEMBLY".
Then, under the "Modules" section of the print report module, define a print report that is generated in an attachment sent by email.
Printscreen showing the settings of the MODULES section and the EMAIL tab.
In the "Scheduler" window
Active: must be set to TRUE
Triggers: click on the three dots icon at the end and the scheduler window will open. Here the days, hours and start period are defined. Days are represented by the number when 1=Monday. The demo below will start Mon/ Fri at 9:00. it is advisable to set the task launcher in Windows to 9:15 (every hour)
CAQservice takes care of regular distribution, which must be installed.
In addition, the "Scheduler" tab must be checked next to the "Mail" line in ./APL/CAQadmin.exe (System Administration)
For the scheduler to operate in PALSTAT, it is necessary to run a script from scheduled tasks in Windows every hour in the SYSTEM account, eg hourly. Each time a script from the scheduler in Windows is run, it verifies that there is no time-ready task in Palstat.
/APL/modulerunner.exe scheduler/smmailreport
It is advisable to create a batch that will store the output in a file within the PALSTAT installation for later analysis in case of problems. This program will check every hour in PALSTAT whether any reporting has the Scheduler set and if YES it will start it. If the scheduler is set to 9:00 and Windows starts the task at 9:3, the email will be sent because the scheduler time is in the past.
Palstat CAQ is delivered together with the directory / PROCESS where the "scheduler.mail.bat.example" file, which is prepared for startup and logging can also be found.
Sample batch:
C:/PALSTAT/CONFIG/palstat.scheduller.smtp.bat
@ECHO OFF
C:
CD c:/PALSTAT/APL/
modulerunner.exe scheduler/smmailreport MailReportModule > c:/PALSTAT/tmp/reporting.email.txt
DEBUG:
For debugging, it is possibe to force the distrubution. CAUTION! It can be sent to a huge amount of people is set up "all", this can be replaced by the name of the report to be executed.
modulerunner.exe scheduler/smmailreport MailReportModule /force all
![]() |
© Copyright 1992 - 2025 PALSTAT s.r.o. |
PALSTAT s.r.o. Bucharova 230 543 02 Vrchlabí CZECH REPUBLIC |
tel.: +420 499 422 044 tel.: +420 499 692 016 www.palstat.cz |
» Home Page » Training » References » News |
» Events » Partners » Support » Contact |
» Products » Customer portal » Remote support » Update |
» Terms and Conditions » Gallery » Map » Portal 3 |