4.7.5. Emails

CAE

No email is sent automatically. To send emails for specific user actions or events, listeners are defined and can be implemented.

  • State change of a CommunityUser

    • CommunityUserServiceListener#onStateChanged

  • Registration requested

    • RegistrationServiceListener#onRegistrationRequested or RegistrationServiceListenerBase#onRegistrationRequested, if not all methods of RegistrationServiceListener need to be implemented.

  • A CommunityUser requested to reset his password

    • RegistrationServiceListener#onPasswordResetRequested or RegistrationServiceListenerBase#onPasswordResetRequested, if not all methods of RegistrationServiceListener need to be implemented.

  • State change of a Comment or of a Review

    • CommentServiceListener#onStateChanged

Studio

For the following use cases, an email is sent automatically. The 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 use case, 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.