Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

Version 1 Current »

The e-mail functionality in In-Portal is built around e-mail templates and works like this:

  1. create/edit e-mail template, that contains email subject and body and can use In-Portal template tags
  2. in desired place place "$this->Application->EmailEventUser(...)" orĀ "$this->Application->EmailEventAdmin(...)" code
  3. email gets sent out

In the e-mail generation process 2 special purpose user objects are created:

  • "u.email-from" - user, that is sending email (usually "root" but can be different user)
  • "u.email-to" - user, that is receiving email

Unfortunately both above mentioned user objects are loaded from temporary tables, when email sending is initiated while editing user/administrator in Admin Console.

Solution

Always load "u.email-from" and "u.email-to" objects from Live Table.

Related Tasks

  • No labels