/
Temporary tables are used during email sending [5.2.2-B1]

Temporary tables are used during email sending [5.2.2-B1]

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

INP-1581 - Getting issue details... STATUS