Page tree
Skip to end of metadata
Go to start of metadata

The following hooks are currently available: 

  • after_send_mail
  • before_send_mail

These hooks are always executed as soon as a reminder mail is sent.
The hook files can be found in the module directory at the subdirectory "hooks".

After Send Mail

You can execute custom code after a mail has been sent.

Before Send Mail

With "logActivity (json_encode($MailVars))" you can get an overview of all mail variables. 

  • You can extend this array and add custom template variables, which will then be available in your mail template.
  • You can override the existing values (e.g. subject, mail template name, etc.)

Setting "$abortMail" to "abort" does abort sending the current mail.

  • No labels