Admin send email to users
Add an API endpoint for Administrator to send emails to the selected list of users.
It needs to also accept the message template in HTML (to be populated for each User
individually).
The populated HTML message is then wrapped in the Genesys email template (!709) and scheduled for sending.
I think the endpoint can be void sendEmail(Set<UUID> userUuids, String template)
or something similar. It needs @PreAuthorize("hasAuthority('ROLE_ADMIN')")
on the service.
Template variables
frontendUrl
apiUrl
-
user
: the user we're sending to