close

Filter

Elastic Social Manual / Version 2406.0

Table Of Contents

4.7.5 Emails

CAE

Emails can be sent to a user for specific user actions or events. For the following events corresponding listeners are triggered and can be customized:

  • Event: State change of a CommunityUser,

    Listener: CommunityUserServiceListener#onStateChanged

  • Event: Registration requested

    Listener: RegistrationServiceListener#onRegistrationRequested or RegistrationServiceListenerBase#onRegistrationRequested

  • Event: A CommunityUser requested to reset his password

    Listener: RegistrationServiceListener#onPasswordResetRequested or RegistrationServiceListenerBase#onPasswordResetRequested

  • Event: State change of a Comment or of a Review

    Listener: CommentServiceListener#onStateChanged

Studio

For the following events, an email is sent automatically. The corresponding MailTemplates must be provided.

  • User Blocked: The CommunityUser#State changes to CommunityUser.State.BLOCKED.

  • User Restored: The CommunityUser has a changed profile and the moderator resets the profile to the last values. The email is only sent for a user who has not the state CommunityUser.State.ANONYMIZED, CommunityUser.State.IGNORED or CommunityUser.State.BLOCKED.

  • User Deleted: The CommunityUser is deleted.

  • Comment rejected: A comment of the CommunityUser is rejected. The email is only sent for a user who has not the state CommunityUser.State.ANONYMIZED, CommunityUser.State.IGNORED or CommunityUser.State.BLOCKED.

  • User Profile Changed: A property of the CommunityUser changed. The email is only sent for a user who has not the state CommunityUser.State.ANONYMIZED, CommunityUser.State.IGNORED or CommunityUser.State.BLOCKED.

For the following event, an email is sent, if the corresponding listener is implemented and the mail template is provided:

  • Resend Registration Confirmation: The moderator clicks on the "resend registration confirmation" link in the user details section. The email is only sent for a user who has the state CommunityUser.State.REGISTRATION_REQUESTED and if the listener RegistrationServiceListener#onRegistrationRequested is implemented.

  • User Activated: The email is sent when using premoderation and when a newly registered and activated user is actually approved. The listener CommunityUserServiceListener#onStateChanged must be implemented.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.