5.23.8.2.5. Send notifications by e-mail

Tasks can be used to react to various events, including sending an e-mail when an ERP number has been requested.

Configure the "SendMail.PartRequest" task in the dashboard

Example "SendMail.PartRequest"

Example "SendMail.PartRequest"

  1. Wear the address of the SMTP server in the configuration file pappserver.cfg > block SendMailTask > key MailHost .

    In addition to the MailHost (server) key, a user name and password can also be configured - if necessary.[85]

    Configuration file pappserver.cfg > block SendMailTask > key MailHost

    Configuration file pappserver.cfg > block SendMailTask > key MailHost

  2. Take in the configuration file pappserver.cfg > block task:SendMail.PartRequest more entries.

    • Modules: SendMailTask

    • Active: on/off

    • TimeTable: OnPartRequestCreated

    • sender

    • receiver

    • subject

    • template

    • DefaultValues

    The same settings can also be found in the dashboard. A task can also be created here with New Task and Save. In any case, the task must be activated.

  3. Optionally, execute the script as a test by clicking on the arrow.

    Execute task

    Execute task

  4. Execute a request via the Request to ERP number button.

    -> The e-mail notification is sent immediately.

    Received mail (example)

    Received mail (example)




[85] Examples where the SMTP mail module is used: Part Number Request Dashboard (when new requests are received), PLMsynchro (when processes fail), For Health Monitoring (when monitored processes reach a critical status), ReportsTask, ReportWatcher, RunScriptTask, SendMailTask