JBoss Community Archive (Read Only)

GateIn Portal 3.8

Send mail to administrator when new user is registered

It may be useful for a portal administrator to be notified when a new user registers with the portal, particularly if the portal provides a public registration page, which is the case with GateIn Portal. This feature is disabled by default. To configure the new user email service, perform the following configuration:

  1. Configure your SMTP server - You will need to configure correctly your SMTP server as described in Email Service Configuration

  2. Configure the service used for sending emails - There is new component PostRegistrationService, which can be configured in GATEIN_HOME/gatein/gatein.ear/portal.war/WEB-INF/conf/admin/admin-configuration.xml. There are descriptions in this file for each of the available parameters. Most importantly, the two parameters that need to be configured at the minimum are:

    • sendMailAfterRegistration - The value needs to be changed to true (It's false by default so sending emails after registration is disabled)

    • mailTo - You need to add your email address here.

  3. Test - Restart the server and register a new user via GateIn Portal user interface. An email will be sent notifying you that a new user has been registered.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 13:19:55 UTC, last content change 2012-11-21 22:51:47 UTC.