Generic Email API

This is a generic Email API, which can be used to send email notifications to the users. It uses an email template which is under /etc/notifications/email. We can inject the values to the parameters of the email template.

This component uses the Mail Service to send the emails. It should be configured in the felix console.

This API can be called as below :

EmailServiceObject.sendEmail(String templatePath, List<InternetAddress> recipientsList, Map<String,String> emailParams);

Parameters : 
 
1) The templatePath is the location of the email template. A sample template is located under
/etc/notification/email/acsEmailTemplate/emailtemplate.txt.

2) List of Recipients - 

3) Map - containing dynamic email parameters defined in the email template. 


The EmailServiceObject is an OSGi service and can be injected using @Reference in the calling class.