- if ((isExtensionActive('msg')) && (postRequestElement('type') == 'message')) {
- // Add message
- $message = loadEmailTemplate('admins_msg_contct_admin', postRequestElement('text'), 0);
- SEND_ADMIN_MESSAGE(getRequestElement('admin'), ADMINS_MSG_FROM_ADMIN, $message);
- } else {
- // Load admin's email address
- $email = getAdminEmail(bigintval(getRequestElement('admin')));