The platform built-in module “Messaging Notifications” allows APS applications to register their own email notification templates and then send email notifications to notification subscribers.
The Mail Notifications concepts provide more details and give examples on the APS type implementation.